Browse Source

refactoring: adjusted layout of classes

master
Ozan-Can Ekinci 2 years ago
parent
commit
1c649cf3ee
  1. 1
      src/main/java/Gui/GameGui.java
  2. 3
      src/main/java/game/loadNextQuestion.java

1
src/main/java/Gui/GameGui.java

@ -13,7 +13,6 @@ import javax.swing.JPanel;
import game.loadNextQuestion;
import game.runGame;
public class GameGui implements GameGuiInterface {
public static JPanel MainPanel, ButtonPanel, headingPanel, WinningPanel, LosingPanel;

3
src/main/java/game/loadNextQuestion.java

@ -21,7 +21,6 @@ public class loadNextQuestion implements ActionListener {
}
}
else if (runGame.splitAns[4].equals("2")) {
if (e.getSource() == GameGui.AnswersBtn2) {
loadQuestions();
@ -30,7 +29,6 @@ public class loadNextQuestion implements ActionListener {
}
}
else if (runGame.splitAns[4].equals("3")) {
if (e.getSource() == GameGui.AnswersBtn3) {
loadQuestions();
@ -39,7 +37,6 @@ public class loadNextQuestion implements ActionListener {
}
}
else if (runGame.splitAns[4].equals("4")) {
if (e.getSource() == GameGui.AnswersBtn4) {
loadQuestions();

Loading…
Cancel
Save