-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToddlerGame
More file actions
33 lines (27 loc) · 727 Bytes
/
Copy pathToddlerGame
File metadata and controls
33 lines (27 loc) · 727 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
package uwstout.cs144.projects.project3.toddlerGame;
import javax.swing.JFrame;
/**
* This class runs my entire Toddler Game program.
*
* @author flowersC
* @version 2016-12-13
*
*/
public class ToddlerGame {
/**
* This class runs my entire Toddler Game program.
*
* @param args
* command line parameters
*/
public static void main(String[] args) {
// creates the frame for my game
JFrame newWindow = new JFrame("Toddler Game");
// this allows my program to close properly
newWindow.setDefaultCloseOperation(newWindow.DISPOSE_ON_CLOSE);
// this will add in my toddler game panel
newWindow.add(new ToddlerPanel(newWindow));
newWindow.pack();
newWindow.setVisible(true);
}
}