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 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();

Loading…
Cancel
Save