Advertisement
Guest User

Pong.java

a guest
Oct 28th, 2011
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. import javax.swing.JFrame;
  2.  
  3. public class Pong extends JFrame {
  4.     private static final long serialVersionUID = 3778864206257829821L;
  5.    
  6.     public Pong() {
  7.         add(new Board());
  8.         setTitle("Pong");
  9.         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10.         setSize(680, 510);
  11.         setVisible(true);
  12.         setResizable(false);
  13.         setLocation(5, 5);
  14.     }
  15.    
  16.     public static void main(String[] args) {
  17.         new Pong();
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement