Browse Source

refactoring: create new method for better readability

master
Leon Montag 2 years ago
parent
commit
bf8840e2bd
  1. 3
      src/main/java/Gui/StartGameGui.java

3
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);
}
}
Loading…
Cancel
Save