Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. package pong;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5.  
  6. import javax.swing.JButton;
  7. import javax.swing.JFrame;
  8.  
  9. public class PongWindow{
  10.    
  11.     JFrame frame;
  12.     PongDrawing s;
  13.    
  14.     JButton startgamebutton;
  15.    
  16.     public PongWindow(){
  17.         s = new PongDrawing();
  18.         frame = new JFrame("SUPER PONG EXTREME 4000 TO THE MAX - Made by Staneh");
  19.         frame.setSize(600,500);
  20.         frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
  21.        
  22.         frame.setResizable(false);
  23.         frame.setVisible(true);
  24.         frame.getContentPane().add(s);
  25.     }
  26.    
  27.     class StartGameButtonHandler implements ActionListener{
  28.         public void actionPerformed(ActionEvent e){
  29.         }
  30.     }
  31.    
  32.     public void startGame(){
  33.         s.startGame();
  34.     }
  35.    
  36.     public static void main(String[] args){
  37.         PongWindow w = new PongWindow();
  38.         w.startGame();
  39.     }
  40.    
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement