From bf8840e2bd7822be8854c328e7d5dd6547a30dc5 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 20:33:48 +0100 Subject: [PATCH] refactoring: create new method for better readability --- src/main/java/Gui/StartGameGui.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/StartGameGui.java b/src/main/java/Gui/StartGameGui.java index 1c51367..c52897c 100644 --- a/src/main/java/Gui/StartGameGui.java +++ b/src/main/java/Gui/StartGameGui.java @@ -11,11 +11,12 @@ public class StartGameGui implements ActionListener { @Override public void actionPerformed(ActionEvent e) { gui.Panel.setVisible(false); + } + public void startGame() { GameGui Gui = new GameGui(); Gui.createGui(); runGame rungame = new runGame(); rungame.run(GameGui.questionNr); } - }