Browse Source

refactoring: adjusted HighscoreLabel and currentQuestionNrLabel size

master
Ozan-Can Ekinci 2 years ago
parent
commit
c370afd42e
  1. 2
      src/main/java/Gui/GameGui.java

2
src/main/java/Gui/GameGui.java

@ -113,6 +113,7 @@ public class GameGui implements GameGuiInterface {
currentQuestion++; currentQuestion++;
CurrentQuestionNrLabel.setText(questionText); CurrentQuestionNrLabel.setText(questionText);
CurrentQuestionNrLabel.setFont(new Font("Serif", Font.BOLD, 20));
MainPanel.add(CurrentQuestionNrLabel); MainPanel.add(CurrentQuestionNrLabel);
} }
@ -182,6 +183,7 @@ public class GameGui implements GameGuiInterface {
highScore = questionNr; highScore = questionNr;
} }
HighScoreLabel = new JLabel("Dein Highscore ist: Frage " + highScore); HighScoreLabel = new JLabel("Dein Highscore ist: Frage " + highScore);
HighScoreLabel.setFont(new Font("Serif", Font.BOLD, 22));
LosingPanel.add(HighScoreLabel); LosingPanel.add(HighScoreLabel);
} }

Loading…
Cancel
Save