Advertisement
Guest User

Main

a guest
Oct 11th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1. import javax.swing.JFrame;
  2.  
  3. public class Main extends JFrame{
  4.    
  5.     Board b = new Board();
  6.    
  7.     public Main(){
  8.         this.setSize(500, 500);
  9.         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.         this.setVisible(true);
  11.         this.add(b);
  12.     }
  13.    
  14.     public static void main(String args[]){
  15.     Main m = new Main();   
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement