Browse Source

refactoring: [MouseGame Class]: Auslagern der Hoehe des Frame-Bounds.

remotes/origin/MouseGame
fdai7382 2 years ago
parent
commit
95cffc204f
  1. 3
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

3
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

@ -24,6 +24,7 @@ public class MouseGame extends JFrame {
int resetX = 200; int resetX = 200;
int resetY = 170; int resetY = 170;
int breite = 900; int breite = 900;
int hoehe = 650;
/** /**
* Launch the application. * Launch the application.
@ -47,7 +48,7 @@ public class MouseGame extends JFrame {
//Fensterrahmen Haupt Layout //Fensterrahmen Haupt Layout
setTitle("Mouse Game"); setTitle("Mouse Game");
setBounds(100, 100, breite, 650);
setBounds(100, 100, breite, hoehe);
robot.mouseMove(resetX, resetY); robot.mouseMove(resetX, resetY);
contentPane = new JPanel(); contentPane = new JPanel();

Loading…
Cancel
Save