Browse Source

create Panels for buttons and Questions

master
Leon Montag 2 years ago
parent
commit
aeb3c6b9c3
  1. 14
      src/main/java/Gui/GameGui.java
  2. 2
      src/main/java/Gui/StartGameGui.java
  3. BIN
      target/MiniGameProject-1.0-SNAPSHOT.jar
  4. 2
      target/maven-archiver/pom.properties

14
src/main/java/Gui/GameGui.java

@ -0,0 +1,14 @@
package Gui;
import javax.swing.JPanel;
public class GameGui {
public static JPanel MainPanel, ButtonPanel, headingPanel;
public void createGui() {
MainPanel = new JPanel();
ButtonPanel = new JPanel();
headingPanel = new JPanel();
}
}

2
src/main/java/Gui/StartGameGui.java

@ -12,7 +12,7 @@ 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);
GameGui Gui = new GameGui();
runGame rungame = new runGame(); runGame rungame = new runGame();
rungame.run(); rungame.run();
} }

BIN
target/MiniGameProject-1.0-SNAPSHOT.jar

2
target/maven-archiver/pom.properties

@ -1,5 +1,5 @@
#Generated by Maven #Generated by Maven
#Fri Dec 30 12:02:39 CET 2022
#Fri Dec 30 12:56:18 CET 2022
groupId=MiniGameProject groupId=MiniGameProject
artifactId=MiniGameProject artifactId=MiniGameProject
version=1.0-SNAPSHOT version=1.0-SNAPSHOT
Loading…
Cancel
Save