-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStart.java
More file actions
27 lines (19 loc) · 764 Bytes
/
Start.java
File metadata and controls
27 lines (19 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import javax.swing.JFrame;
import java.awt.*;
public class Start {
public static void main(String args[]) {
JFrame frame = new JFrame("Space Simulation");
WndwGraphics wndwGraphics = new WndwGraphics();
PlanetVariables planetVariables = new PlanetVariables();
Timers timers = new Timers();
frame.addKeyListener(new keyListener());
frame.addMouseListener(new mouseListener());
//frame.add(mouseAndKeyL);
frame.add(wndwGraphics);
frame.setFocusable(true); //
frame.setSize(WndwGraphics.WINDOW_WIDTH, WndwGraphics.WINDOW_HEIGHT);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setResizable(false);
}
}