From a571484f779ac06a4b926f1bded2618bb8781f2d Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 00:59:35 +0100 Subject: [PATCH] Added a GridBagConstraints --- src/main/java/Gui/gui.java | 4 ++++ target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 3400 -> 3495 bytes target/maven-archiver/pom.properties | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index 5f73061..bd29472 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -1,6 +1,7 @@ package Gui; import java.awt.Font; +import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JButton; @@ -30,6 +31,9 @@ public class gui { Panel = new JPanel(); Panel.setSize(width,height); Panel.setLayout(new GridBagLayout()); + GridBagConstraints gbc = new GridBagConstraints(); + gbc.gridwidth = GridBagConstraints.REMAINDER; + gbc.fill = GridBagConstraints.HORIZONTAL; Label = new JLabel("MiniGames"); Label.setHorizontalAlignment(JLabel.CENTER); Label.setFont(new Font("Serif", Font.BOLD, 28)); diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index 60fca950dcd8ad680aa9ae589da100e779970bbe..20a9fd3fe92d8215d6b5d98f17514d27d430f88d 100644 GIT binary patch delta 1471 zcmX>hwOpDzz?+$civa`@CvvMXCQLM%&6qgxoML?<`@GQKbKb29WMN=1WoKaE1uAhb z&D2jX&D2ZINh~g|4T%np4i))l#_8G7&h#*dYfJCmHgD-Q;yR643!N^v1#vR1jI#AC zo7CH0{NV{p)SCJO$M==Y`N;pnBYTqM%#SD4=l@~+$57wU-}gAmT2sMbUi;o_k=ys` z-H+S<_jCPceFn7;xe~e`SRa~S=xT6yzH4XdG2P30$HX_kHhRvTlG zhI=lx@s+S$OjT&gYkW}SdbC?q^}?n&fft^#`?U`0?PdE_P#?9RH2Ue@Nev#GzVtLQ zPGj>567`n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