|
@ -16,7 +16,7 @@ import game.loadNextQuestion; |
|
|
public class GameGui implements GameGuiInterface { |
|
|
public class GameGui implements GameGuiInterface { |
|
|
|
|
|
|
|
|
public static JPanel MainPanel, ButtonPanel, headingPanel, WinningPanel, LosingPanel; |
|
|
public static JPanel MainPanel, ButtonPanel, headingPanel, WinningPanel, LosingPanel; |
|
|
public static JLabel Headline,QuestionLabel,WinningLabel, LosingLabel; |
|
|
|
|
|
|
|
|
public static JLabel Headline,QuestionLabel,WinningLabel, LosingLabel, ShowQuestionNr; |
|
|
public static JButton AnswersBtn1,AnswersBtn2,AnswersBtn3,AnswersBtn4,RestartBtn,RestartBtn1,ClosingBtn; |
|
|
public static JButton AnswersBtn1,AnswersBtn2,AnswersBtn3,AnswersBtn4,RestartBtn,RestartBtn1,ClosingBtn; |
|
|
public static int questionNr = 0; |
|
|
public static int questionNr = 0; |
|
|
GridLayout grid; |
|
|
GridLayout grid; |
|
@ -102,6 +102,14 @@ GridBagConstraints gbc; |
|
|
gui.Frame.add(WinningPanel); |
|
|
gui.Frame.add(WinningPanel); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void createShowQuestion() { |
|
|
|
|
|
int money[] = {10,20,30,40,50,60,70,80,90,100,110,120,130,140,150}; |
|
|
|
|
|
String questionText = "Hier wird die Frage stehen"; |
|
|
|
|
|
|
|
|
|
|
|
ShowQuestionNr.setText(questionText); |
|
|
|
|
|
MainPanel.add(ShowQuestionNr); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void createHeadline() { |
|
|
public void createHeadline() { |
|
|
Headline = new JLabel("Wer wird Millionaer?"); |
|
|
Headline = new JLabel("Wer wird Millionaer?"); |
|
|