You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
423 B

2 years ago
2 years ago
2 years ago
  1. import javax.swing.*;
  2. public class MenuFrame extends JFrame {
  3. MenuPanel panel;
  4. public MenuFrame() {
  5. panel = new MenuPanel();
  6. this.add(panel);
  7. this.setTitle("Main Menu for Ping-Pong");
  8. this.setResizable(false);
  9. this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  10. this.pack();
  11. this.setVisible(true);
  12. this.setLocationRelativeTo(null);
  13. }
  14. }