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 @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
gui.Panel.setVisible(false); gui.Panel.setVisible(false);
}
public void startGame() {
GameGui Gui = new GameGui(); GameGui Gui = new GameGui();
Gui.createGui(); Gui.createGui();
runGame rungame = new runGame(); runGame rungame = new runGame();
rungame.run(GameGui.questionNr); rungame.run(GameGui.questionNr);
} }
} }
Loading…
Cancel
Save