t1nman

Game.java

Feb 23rd, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import javax.swing.JFrame;
  2.  
  3. public class Game {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         JFrame window = new JFrame();
  8.         window.setTitle("State Based Game");
  9.         window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.        
  11.         window.setContentPane(new GamePanel());
  12.        
  13.         window.setResizable(false);
  14.         window.pack();
  15.         window.setVisible(true);
  16.        
  17.     }
  18.    
  19. }
Advertisement
Add Comment
Please, Sign In to add comment