diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index 21f9767..195e34a 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -1,14 +1,22 @@ package Gui; +import java.awt.GridLayout; + import javax.swing.JPanel; public class GameGui { + public static JPanel MainPanel, ButtonPanel, headingPanel; +GridLayout grid; public void createGui() { MainPanel = new JPanel(); ButtonPanel = new JPanel(); headingPanel = new JPanel(); + grid = new GridLayout(2,1); + grid.setVgap(150); + headingPanel.setLayout(grid); + gui.Frame.add(MainPanel); } } diff --git a/src/main/java/Gui/StartGameGui.java b/src/main/java/Gui/StartGameGui.java index 9bc5ca1..cafc2ea 100644 --- a/src/main/java/Gui/StartGameGui.java +++ b/src/main/java/Gui/StartGameGui.java @@ -13,6 +13,7 @@ public class StartGameGui implements ActionListener { public void actionPerformed(ActionEvent e) { gui.Panel.setVisible(false); GameGui Gui = new GameGui(); + Gui.createGui(); runGame rungame = new runGame(); rungame.run(); } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index 9ec6899..88ef778 100644 Binary files a/target/MiniGameProject-1.0-SNAPSHOT.jar and b/target/MiniGameProject-1.0-SNAPSHOT.jar differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 4701dcd..656e802 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 12:56:18 CET 2022 +#Fri Dec 30 13:40:39 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 35646fd..b7bea3d 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -3,3 +3,4 @@ C:\Users\Leon\MiniGameProject\src\main\java\Gui\gui.java C:\Users\Leon\MiniGameProject\src\main\java\game\runGame.java C:\Users\Leon\MiniGameProject\src\main\java\main.java C:\Users\Leon\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGui.java