Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pong;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import javax.swing.JButton;
- import javax.swing.JFrame;
- public class PongWindow{
- JFrame frame;
- PongDrawing s;
- JButton startgamebutton;
- public PongWindow(){
- s = new PongDrawing();
- frame = new JFrame("SUPER PONG EXTREME 4000 TO THE MAX - Made by Staneh");
- frame.setSize(600,500);
- frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
- frame.setResizable(false);
- frame.setVisible(true);
- frame.getContentPane().add(s);
- }
- class StartGameButtonHandler implements ActionListener{
- public void actionPerformed(ActionEvent e){
- }
- }
- public void startGame(){
- s.startGame();
- }
- public static void main(String[] args){
- PongWindow w = new PongWindow();
- w.startGame();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement