From 13b383ae4e3b4b19cd8959fa7e83cd0da67b51d4 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 01:00:35 +0100 Subject: [PATCH] Added Label, StartBtn and CloseBtn to GridBagConstraints --- src/main/java/Gui/gui.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index bd29472..0fd8a27 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -37,9 +37,9 @@ public class gui { Label = new JLabel("MiniGames"); Label.setHorizontalAlignment(JLabel.CENTER); Label.setFont(new Font("Serif", Font.BOLD, 28)); - Panel.add(StartBtn); - Panel.add(CloseBtn); - Panel.add(Label); + Panel.add(Label,gbc); + Panel.add(StartBtn,gbc); + Panel.add(CloseBtn,gbc); jf.add(Panel); jf.setVisible(true); Panel.setVisible(true);