From fa789f2d1fd8f84122e0aca0a31c115c50236936 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 13:41:06 +0100 Subject: [PATCH] Add GridLayout to headingPanel --- src/main/java/Gui/GameGui.java | 8 ++++++++ src/main/java/Gui/StartGameGui.java | 1 + target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 5941 -> 6643 bytes target/maven-archiver/pom.properties | 2 +- .../compile/default-compile/inputFiles.lst | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) 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 9ec6899ba352c58ce3e066e37b513cde52c4e7d5..88ef778b6259f79a5ac75fc9ceb370021167afc8 100644 GIT binary patch delta 1612 zcmdn0_t}^yz?+$civa{gawqbrG70BSG@b<_&nv13=gtcSOF;=1Anjh7sSne`!62Nw zS%h&BGf@5J9W3`5>p?n1t(PQ9FflL`GBYp;LUp(&=B5I5>LuqS78mCR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