Advertisement
Guest User

Untitled

a guest
Oct 10th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. package Game;
  2.  
  3. import javax.swing.JFrame;
  4. import javax.swing.SwingUtilities;
  5.  
  6. public class ThingMove {
  7.  
  8.     private String NAME = "Title";
  9.     private int WIDTH = 500;
  10.     private int HEIGHT = 470;
  11.  
  12.     public ThingMove() {
  13.  
  14.         JFrame frame = new JFrame(NAME);
  15.  
  16.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  17.         frame.setSize(WIDTH, HEIGHT);
  18.         frame.setLocationRelativeTo(null);
  19.  
  20.         frame.add(new Board());
  21.  
  22.         frame.setVisible(true);
  23.     }
  24.  
  25.     public static void main(String[] args) {
  26.  
  27.         SwingUtilities.invokeLater(new Runnable() {
  28.             @Override
  29.             public void run() {
  30.                 new ThingMove();
  31.             }
  32.         });
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement