From 12c2c1abeac6a1c87f1b2d7cc8473257afed4347 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 15:34:32 +0100 Subject: [PATCH] Added AnswerBtn3 und AnswerBtn4 --- src/main/java/Gui/GameGui.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index e82af2f..d31e2fc 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -10,11 +10,12 @@ import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; + public class GameGui { public static JPanel MainPanel, ButtonPanel, headingPanel; public static JLabel Headline,QuestionLabel; -public static JButton AnswersBtn1,AnswersBtn2; +public static JButton AnswersBtn1,AnswersBtn2,AnswersBtn3,AnswersBtn4; GridLayout grid; GridBagConstraints gbc; @@ -55,7 +56,15 @@ GridBagConstraints gbc; AnswersBtn2 = new JButton(); ButtonPanel.add(AnswersBtn2,gbc); + gbc.gridx = 0; + gbc.gridy = 1; + AnswersBtn3 = new JButton(); + ButtonPanel.add(AnswersBtn3,gbc); + gbc.gridx = 1; + gbc.gridy = 1; + AnswersBtn4 = new JButton(); + ButtonPanel.add(AnswersBtn4,gbc); ButtonPanel.setVisible(true); MainPanel.add(ButtonPanel);