|
@ -111,8 +111,9 @@ public class GameGui implements GameGuiInterface { |
|
|
String[] arrMoney = runGame.readFile("QandA/Money.txt", numLines); |
|
|
String[] arrMoney = runGame.readFile("QandA/Money.txt", numLines); |
|
|
String questionText = "Frage " + currentQuestion + ": " + arrMoney[i - 1] + " Euro"; |
|
|
String questionText = "Frage " + currentQuestion + ": " + arrMoney[i - 1] + " Euro"; |
|
|
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); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|