From d2bfc191baba869dc74889868f0dc49a2eaebb71 Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Tue, 31 Jan 2023 16:03:28 +0100 Subject: [PATCH] Update --- .idea/hellsgamers.iml | 2 -- src/main/java/MenuFrame.java | 12 +++++++++++- src/main/java/MenuPanel.java | 2 ++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/main/java/MenuPanel.java diff --git a/.idea/hellsgamers.iml b/.idea/hellsgamers.iml index 1c67be8..db49080 100644 --- a/.idea/hellsgamers.iml +++ b/.idea/hellsgamers.iml @@ -7,8 +7,6 @@ - - diff --git a/src/main/java/MenuFrame.java b/src/main/java/MenuFrame.java index 049bc7a..660b68e 100644 --- a/src/main/java/MenuFrame.java +++ b/src/main/java/MenuFrame.java @@ -1,2 +1,12 @@ -public class MenuFrame { +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); } diff --git a/src/main/java/MenuPanel.java b/src/main/java/MenuPanel.java new file mode 100644 index 0000000..0fa2ec8 --- /dev/null +++ b/src/main/java/MenuPanel.java @@ -0,0 +1,2 @@ +public class MenuPanel { +}