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
20 lines
423 B
import javax.swing.*;
|
|
|
|
public class MenuFrame extends JFrame {
|
|
|
|
MenuPanel panel;
|
|
|
|
public MenuFrame() {
|
|
panel = new MenuPanel();
|
|
this.add(panel);
|
|
this.setTitle("Main Menu for Ping-Pong");
|
|
this.setResizable(false);
|
|
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
this.pack();
|
|
this.setVisible(true);
|
|
this.setLocationRelativeTo(null);
|
|
}
|
|
|
|
|
|
}
|