Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- JFrame frame = new JFrame("Game");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- //frame.setLocationRelativeTo(null);
- frame.setPreferredSize(new Dimension(416,436));
- Game game = new Game();
- LevelPanel lp = new LevelPanel(game);
- JLabel status = new JLabel("Status");
- status.setPreferredSize(new Dimension(100,10));
- frame.getContentPane().add(status);
- frame.getContentPane().add(lp);
- frame.pack();
- frame.setVisible(true);
- }
Add Comment
Please, Sign In to add comment