-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrogSimulator.java
More file actions
34 lines (23 loc) · 840 Bytes
/
FrogSimulator.java
File metadata and controls
34 lines (23 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* driver class*/
// 2016-06-05
import javax.swing.JFrame;
import java.awt.Component;
// by umji
import javax.swing.*;
import java.awt.*;
public class FrogSimulator {
public static void main(String[] args) {
JFrame frame = new JFrame("FrogSimulator");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// 2016-06-05
frame.setBounds(0,0,800,600);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
frame.setLocation((dim.width/2)-(frame.getWidth()/2), (dim.height/2)-(frame.getHeight()/2));
// by umji
frame.setResizable(false);
PanelControl primary = new PanelControl();
frame.getContentPane().add(primary);
frame.pack();
frame.setVisible(true);
} // main()
} // FrogSimulator class