From 95cffc204ffcaeb007c265b5851289a613a1e05c Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Mon, 30 Jan 2023 11:31:04 +0100 Subject: [PATCH] refactoring: [MouseGame Class]: Auslagern der Hoehe des Frame-Bounds. --- .../de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java index 34bef8b..7d94087 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java @@ -24,6 +24,7 @@ public class MouseGame extends JFrame { int resetX = 200; int resetY = 170; int breite = 900; + int hoehe = 650; /** * Launch the application. @@ -47,7 +48,7 @@ public class MouseGame extends JFrame { //Fensterrahmen Haupt Layout setTitle("Mouse Game"); - setBounds(100, 100, breite, 650); + setBounds(100, 100, breite, hoehe); robot.mouseMove(resetX, resetY); contentPane = new JPanel();