From aeb3c6b9c3363ac98d78062831e1f81e221ddd04 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 13:24:08 +0100 Subject: [PATCH] create Panels for buttons and Questions --- src/main/java/Gui/GameGui.java | 14 ++++++++++++++ src/main/java/Gui/StartGameGui.java | 2 +- target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 5941 -> 5941 bytes target/maven-archiver/pom.properties | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/main/java/Gui/GameGui.java diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java new file mode 100644 index 0000000..21f9767 --- /dev/null +++ b/src/main/java/Gui/GameGui.java @@ -0,0 +1,14 @@ +package Gui; + +import javax.swing.JPanel; + +public class GameGui { +public static JPanel MainPanel, ButtonPanel, headingPanel; + + + public void createGui() { + MainPanel = new JPanel(); + ButtonPanel = new JPanel(); + headingPanel = new JPanel(); + } +} diff --git a/src/main/java/Gui/StartGameGui.java b/src/main/java/Gui/StartGameGui.java index 38fd1a8..9bc5ca1 100644 --- a/src/main/java/Gui/StartGameGui.java +++ b/src/main/java/Gui/StartGameGui.java @@ -12,7 +12,7 @@ public class StartGameGui implements ActionListener { @Override public void actionPerformed(ActionEvent e) { gui.Panel.setVisible(false); - + GameGui Gui = new GameGui(); runGame rungame = new runGame(); rungame.run(); } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index 279db4fbc6d801c15bc10ce161c5bdf9759f6e53..9ec6899ba352c58ce3e066e37b513cde52c4e7d5 100644 GIT binary patch delta 248 zcmdn0w^ffPz?+$civa|<(kJq$GI6F)G@b<_&nv2Mrq2rnOF;=1Anjh7sSne`!N8fm zS%h&BGf@5J9W3`5LG(Z~@I% z2v)v4dAd*@tLbK=Edi6cgabjUVuekCW=x(U>;R&!2^)eaP7wnTWi4U{qN+ulLDT^e jOAz&2#0f;%i<*J7my3cdnY=~R8$>aR?MGO3LM#^m1?N9P delta 248 zcmdn0w^ffPz?+$civa{e5+?GfG6g40G@b<_&nv0~C(H{4OF;=1Anjh7sSne`!4RCV zS%h&BGf@5J9W3`5LG(gaFOY zcwRDR@^qm*R)bAO+d?LD2?v5y#R{7O&6qqz*a1Xc6E*}