From 9ddff67f7ba1b885a287b398f0cf3188e3d031d8 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Tue, 10 Jan 2023 19:36:30 +0100 Subject: [PATCH] calling Losingpanel after losing --- src/main/java/game/loadNextQuestion.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/game/loadNextQuestion.java b/src/main/java/game/loadNextQuestion.java index 9e1b169..9bc63d8 100644 --- a/src/main/java/game/loadNextQuestion.java +++ b/src/main/java/game/loadNextQuestion.java @@ -14,7 +14,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn1) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -23,7 +23,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn2) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -32,7 +32,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn3) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } @@ -41,7 +41,7 @@ public class loadNextQuestion implements ActionListener { if (e.getSource() == GameGui.AnswersBtn4) { loadQuestions(); } else { - System.exit(0); + wrongAnswer(); } } }