Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package game.pong;
- import javax.swing.JFrame;
- public class Game extends JFrame{
- private static final long serialVersionUID = 3589805788478001754L;
- public static final int WIDTH = 600;
- public static final int HEIGHT = 400;
- public Game(){
- setSize(WIDTH, HEIGHT);
- setResizable(false);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setLocationRelativeTo(null);
- setTitle("Pong");
- add(new Screen());
- setVisible(true);
- }
- public static void main(String[] args){
- new Game();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement