From d6a48d33f94d99b9dd65a190a63830aed1d70487 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Thu, 12 Jan 2023 18:26:30 +0100 Subject: [PATCH] adjusted GridBagLayout for buttons after winning --- src/main/java/Gui/GameGui.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index c88b72c..31e6e4a 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -78,6 +78,11 @@ GridBagConstraints gbc; GameGui.ButtonPanel.setVisible(false); GridBagConstraints gbc = new GridBagConstraints(); + gbc.gridwidth = GridBagConstraints.REMAINDER; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.ipadx = 200; + gbc.ipady = 100; + gbc.insets = new Insets(20, 0, 0, 0); RestartBtn1 = new JButton("Nochmal Spielen"); ClosingBtn = new JButton("Schliessen");