Browse Source

refactoring: [MouseGame Class]: Auslagern der Farbei Beige in ein Objekt

remotes/origin/MouseGame
fdai7382 2 years ago
parent
commit
9510d18fa7
  1. 4
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

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

@ -21,6 +21,8 @@ public class MouseGame extends JFrame {
private JPanel contentPane;
public Robot robot = new Robot();
public Color farbeBeige = new Color(128, 128, 128);
int resetX = 200;
int resetY = 170;
@ -63,7 +65,7 @@ public class MouseGame extends JFrame {
setForeground(Color.GRAY);
setBackground(Color.DARK_GRAY);
contentPane.setForeground(new Color(0, 0, 0));
contentPane.setBackground(new Color(128, 128, 128));
contentPane.setBackground(farbeBeige);
JLabel labelStart = new JLabel("Start");
labelStart.setHorizontalAlignment(SwingConstants.CENTER);

Loading…
Cancel
Save