Browse Source

added loadNextQuestion ActionListener

master
Ozan-Can Ekinci 2 years ago
parent
commit
17559aad68
  1. 10
      src/main/java/Gui/GameGui.java
  2. 14
      src/main/java/game/loadNextQuestion.java
  3. 17
      target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  4. 6
      target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst

10
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);
}
}

14
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
}
}

17
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

6
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
|||||||
100:0
Loading…
Cancel
Save