Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Main

By: a guest on Oct 11th, 2012  |  syntax: Java  |  size: 0.31 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }
clone this paste RAW Paste Data