|
@ -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; |
|
@ -101,6 +101,14 @@ GridBagConstraints gbc; |
|
|
ClosingBtn.addActionListener(new ActionHandler()); |
|
|
ClosingBtn.addActionListener(new ActionHandler()); |
|
|
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() { |
|
|