Browse Source

[MouseGame Class]: Ändern der Hinter- und Fordergundfarbe.

remotes/origin/textadventure
fdai7382 2 years ago
parent
commit
76e2dc981f
  1. 7
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

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

@ -1,5 +1,6 @@
package de.hs_fulda.gruppenprojekt.JavaGamelauncher; package de.hs_fulda.gruppenprojekt.JavaGamelauncher;
import java.awt.Color;
import java.awt.EventQueue; import java.awt.EventQueue;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -40,7 +41,11 @@ public class MouseGame extends JFrame {
setContentPane(contentPane); setContentPane(contentPane);
contentPane.setLayout(null); 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 }//end standardkonstruktor

Loading…
Cancel
Save