From f1081d148bc33583d0c9e672e22a112aa20972bd Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 15:06:30 +0100 Subject: [PATCH] change the size and margin of the GridBagConstraints --- src/main/java/Gui/GameGui.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index 61161f0..a7b3427 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -4,6 +4,7 @@ import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.GridLayout; +import java.awt.Insets; import javax.swing.JLabel; import javax.swing.JPanel; @@ -36,6 +37,9 @@ GridBagConstraints gbc; headingPanel.add(QuestionLabel); ButtonPanel.setLayout(new GridBagLayout()); gbc = new GridBagConstraints(); + gbc.gridwidth = 1; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.insets = new Insets(10,10,10,10); } }