Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bailey.connor;
- import javax.swing.JFrame;
- import java.awt.Component;
- public class TheGame extends JFrame
- {
- private static final int WIDTH = 800;
- private static final int HEIGHT = 600;
- public TheGame()
- {
- super("One Level");
- setSize(WIDTH, HEIGHT);
- Pong game = new Pong();
- ((Component) game).setFocusable(true);
- getContentPane().add(game);
- setVisible(true);
- setResizable(false);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- }
- public static void main(String args[])
- {
- TheGame run = new TheGame();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement