From 23e31f8b97f61fa47191db4cd8096e8e4ba866d9 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 00:51:01 +0100 Subject: [PATCH] Resized Window and add changed position --- src/main/java/Gui/gui.java | 7 ++++++- src/main/java/main.java | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) 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 { } } -