diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index a2d8a0d..71e4825 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -10,6 +10,8 @@ import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; +import game.loadNextQuestion; + public class GameGui implements GameGuiInterface { @@ -41,7 +43,7 @@ GridBagConstraints gbc; } @Override public void createHeadline() { - Headline = new JLabel("Wer wird Millionär?"); + Headline = new JLabel("Wer wird Million�r?"); headingPanel.add(Headline); MainPanel.add(headingPanel); Headline.setHorizontalAlignment(JLabel.CENTER); @@ -71,16 +73,19 @@ GridBagConstraints gbc; AnswersBtn1 = new JButton(); gbc.gridx = 0; gbc.gridy = 0; + AnswersBtn1.addActionListener(new loadNextQuestion()); ButtonPanel.add(AnswersBtn1,gbc); - + gbc.gridx = 1; gbc.gridy = 0; AnswersBtn2 = new JButton(); + AnswersBtn2.addActionListener(new loadNextQuestion()); ButtonPanel.add(AnswersBtn2,gbc); gbc.gridx = 0; gbc.gridy = 1; AnswersBtn3 = new JButton(); + AnswersBtn3.addActionListener(new loadNextQuestion()); ButtonPanel.add(AnswersBtn3,gbc); gbc.gridx = 1; @@ -88,6 +93,7 @@ GridBagConstraints gbc; AnswersBtn4 = new JButton(); ButtonPanel.add(AnswersBtn4,gbc); ButtonPanel.setVisible(true); + AnswersBtn4.addActionListener(new loadNextQuestion()); MainPanel.add(ButtonPanel); } } diff --git a/src/main/java/game/loadNextQuestion.java b/src/main/java/game/loadNextQuestion.java new file mode 100644 index 0000000..076980c --- /dev/null +++ b/src/main/java/game/loadNextQuestion.java @@ -0,0 +1,14 @@ +package game; + +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + +public class loadNextQuestion implements ActionListener { + + @Override + public void actionPerformed(ActionEvent e) { + // TODO Auto-generated method stub + + } + +} diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 84a0604..b7c28cf 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,8 +1,9 @@ -C:\Users\Leon\MiniGameProject\src\main\java\Gui\ActionHandler.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGuiInterface.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\gui.java -C:\Users\Leon\MiniGameProject\src\main\java\game\runGame.java -C:\Users\Leon\MiniGameProject\src\main\java\main.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\StartGameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GuiInterface.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\GuiInterface.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\GameGuiInterface.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\gui.java +C:\Users\ozan_\MiniGameProject\src\main\java\game\loadNextQuestion.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\ActionHandler.java +C:\Users\ozan_\MiniGameProject\src\main\java\main.java +C:\Users\ozan_\MiniGameProject\src\main\java\game\runGame.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\ozan_\MiniGameProject\src\main\java\Gui\GameGui.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index 17c97ad..4d3e2e8 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,3 +1,3 @@ -C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\Gui\GameGuiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\ozan_\MiniGameProject\src\test\java\Gui\GameGuiTest.java +C:\Users\ozan_\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\ozan_\MiniGameProject\src\test\java\Gui\guiTest.java