|
@ -5,6 +5,8 @@ import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
public class ActionHandler implements ActionListener { |
|
|
public class ActionHandler implements ActionListener { |
|
|
|
|
|
|
|
|
|
|
|
StartGameGui restartGame = new StartGameGui(); |
|
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
public void actionPerformed(ActionEvent e) { |
|
|
if (e.getSource() == gui.CloseBtn) { |
|
|
if (e.getSource() == gui.CloseBtn) { |
|
|
System.exit(0); |
|
|
System.exit(0); |
|
@ -14,6 +16,10 @@ public class ActionHandler implements ActionListener { |
|
|
System.exit(0); |
|
|
System.exit(0); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GameGui.questionNr = 0; |
|
|
|
|
|
GameGui.LosingPanel.setVisible(false); |
|
|
|
|
|
restartGame.startGame(); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |