From 76e2dc981fa61de2e7446ef9d0ccb0f2c7041f8d Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 12:27:31 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20=C3=84ndern=20der=20Hint?= =?UTF-8?q?er-=20und=20Fordergundfarbe.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 7 ++++++- 1 file changed, 6 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 0b0ee5f..8ac9a7e 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 @@ -1,5 +1,6 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; +import java.awt.Color; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; @@ -40,7 +41,11 @@ public class MouseGame extends JFrame { setContentPane(contentPane); contentPane.setLayout(null); - + setForeground(Color.GRAY); + setBackground(Color.DARK_GRAY); + contentPane.setForeground(new Color(0, 0, 0)); + contentPane.setBackground(new Color(128, 128, 128)); + }//end standardkonstruktor