Browse Source

[MouseGame Class]: Hinzufügen eines ContentPanes.

remotes/origin/textadventure
fdai7382 2 years ago
parent
commit
61d929cda1
  1. 9
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

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

@ -1,10 +1,9 @@
package de.hs_fulda.gruppenprojekt.JavaGamelauncher; package de.hs_fulda.gruppenprojekt.JavaGamelauncher;
import java.awt.EventQueue; import java.awt.EventQueue;
import java.awt.Toolkit;
import javax.swing.JFrame; import javax.swing.JFrame;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
public class MouseGame extends JFrame { public class MouseGame extends JFrame {
@ -36,6 +35,12 @@ public class MouseGame extends JFrame {
setBounds(100, 100, 900, 650); setBounds(100, 100, 900, 650);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
}//end standardkonstruktor }//end standardkonstruktor

Loading…
Cancel
Save