Browse Source

calling Losingpanel after losing

master
Ozan-Can Ekinci 2 years ago
parent
commit
9ddff67f7b
  1. 8
      src/main/java/game/loadNextQuestion.java

8
src/main/java/game/loadNextQuestion.java

@ -14,7 +14,7 @@ public class loadNextQuestion implements ActionListener {
if (e.getSource() == GameGui.AnswersBtn1) { if (e.getSource() == GameGui.AnswersBtn1) {
loadQuestions(); loadQuestions();
} else { } else {
System.exit(0);
wrongAnswer();
} }
} }
@ -23,7 +23,7 @@ public class loadNextQuestion implements ActionListener {
if (e.getSource() == GameGui.AnswersBtn2) { if (e.getSource() == GameGui.AnswersBtn2) {
loadQuestions(); loadQuestions();
} else { } else {
System.exit(0);
wrongAnswer();
} }
} }
@ -32,7 +32,7 @@ public class loadNextQuestion implements ActionListener {
if (e.getSource() == GameGui.AnswersBtn3) { if (e.getSource() == GameGui.AnswersBtn3) {
loadQuestions(); loadQuestions();
} else { } else {
System.exit(0);
wrongAnswer();
} }
} }
@ -41,7 +41,7 @@ public class loadNextQuestion implements ActionListener {
if (e.getSource() == GameGui.AnswersBtn4) { if (e.getSource() == GameGui.AnswersBtn4) {
loadQuestions(); loadQuestions();
} else { } else {
System.exit(0);
wrongAnswer();
} }
} }
} }

Loading…
Cancel
Save