From 9510d18fa765a1b8e94d79b3e4a5377aae84d2a2 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Tue, 31 Jan 2023 10:04:45 +0100 Subject: [PATCH] refactoring: [MouseGame Class]: Auslagern der Farbei Beige in ein Objekt --- .../hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java | 4 +++- 1 file changed, 3 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 15e8f66..34eb65b 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 @@ -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);