Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.JFrame;
- public class Game {
- public static void main(String[] args) {
- JFrame window = new JFrame();
- window.setTitle("State Based Game");
- window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- window.setContentPane(new GamePanel());
- window.setResizable(false);
- window.pack();
- window.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment