|
|
@ -11,6 +11,7 @@ import javax.swing.JLabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import game.loadNextQuestion; |
|
|
|
import game.runGame; |
|
|
|
|
|
|
|
|
|
|
|
public class GameGui implements GameGuiInterface { |
|
|
@ -107,8 +108,9 @@ GridBagConstraints gbc; |
|
|
|
|
|
|
|
@Override |
|
|
|
public void createShowQuestion(int i) { |
|
|
|
int money[] = {10,20,30,40,50,60,70,80,90,100,110,120,130,140,150}; |
|
|
|
String questionText = "Frage " + counter + ": " + money[i - 1] + "€"; |
|
|
|
int numLines = runGame.CountFileLines("QandA/Money.txt"); |
|
|
|
String[] arrMoney = runGame.readFile("QandA/Money.txt", numLines); |
|
|
|
String questionText = "Frage " + counter + ": " + arrMoney[i - 1] + "€"; |
|
|
|
counter++; |
|
|
|
|
|
|
|
ShowQuestionNr.setText(questionText); |
|
|
|