From 1ffca03e883d27f9d929b63f965ac949725f3465 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 13:58:15 +0100 Subject: [PATCH] Add Questions Label --- src/main/java/Gui/GameGui.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index cf4ba8d..b21a18d 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -9,7 +9,7 @@ import javax.swing.JPanel; public class GameGui { public static JPanel MainPanel, ButtonPanel, headingPanel; -public static JLabel Headline; +public static JLabel Headline,QuestionLabel; GridLayout grid; @@ -26,5 +26,7 @@ GridLayout grid; MainPanel.add(headingPanel); Headline.setHorizontalAlignment(JLabel.CENTER); Headline.setFont(new Font("Serif", Font.BOLD, 28)); + QuestionLabel = new JLabel("Questions"); + MainPanel.add(QuestionLabel); } }