From bd19a4077c51bfe8b21fcca82ddb27c43fe8de20 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Mon, 16 Jan 2023 11:11:00 +0100 Subject: [PATCH] [GamelauncherMain Class]: Setzen von Vorder- und Hintergrundfarben. --- .../gruppenprojekt/JavaGamelauncher/GamelauncherMain.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java index 058aa5d..b9afc31 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java @@ -1,5 +1,6 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; +import java.awt.Color; import java.awt.EventQueue; import javax.swing.JFrame; @@ -60,7 +61,11 @@ public class GamelauncherMain extends JFrame { setContentPane(contentPane); contentPane.setLayout(null); - + setForeground(Color.GRAY); + setBackground(Color.DARK_GRAY); + contentPane.setForeground(Color.GRAY); + contentPane.setBackground(Color.DARK_GRAY); + } }