From c370afd42e27d74560ea28adf33ae2fc16bc6040 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Sun, 15 Jan 2023 21:22:54 +0100 Subject: [PATCH] refactoring: adjusted HighscoreLabel and currentQuestionNrLabel size --- 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 89a3f1c..54dde92 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -111,8 +111,9 @@ public class GameGui implements GameGuiInterface { String[] arrMoney = runGame.readFile("QandA/Money.txt", numLines); String questionText = "Frage " + currentQuestion + ": " + arrMoney[i - 1] + " Euro"; currentQuestion++; - + CurrentQuestionNrLabel.setText(questionText); + CurrentQuestionNrLabel.setFont(new Font("Serif", Font.BOLD, 20)); MainPanel.add(CurrentQuestionNrLabel); } @@ -182,6 +183,7 @@ public class GameGui implements GameGuiInterface { highScore = questionNr; } HighScoreLabel = new JLabel("Dein Highscore ist: Frage " + highScore); + HighScoreLabel.setFont(new Font("Serif", Font.BOLD, 22)); LosingPanel.add(HighScoreLabel); }