diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index 19f4d98..57e24a2 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -5,11 +5,16 @@ import javax.swing.JFrame; public class gui { JFrame jf; + public static int width = 800, height = 600; + public void create(){ jf = new JFrame("Wer wird Millionr"); + jf.setSize(width,height); jf.setVisible(true); + jf.setLocationRelativeTo(null); + jf.setResizable(false); + jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } } - diff --git a/src/main/java/main.java b/src/main/java/main.java index 32c1a22..4a9afbb 100644 --- a/src/main/java/main.java +++ b/src/main/java/main.java @@ -10,4 +10,3 @@ public class main { } } -