From 61d929cda1a3532cc4be4277c30da66e03f737b9 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 12:24:04 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20Hinzuf=C3=BCgen=20eines?= =?UTF-8?q?=20ContentPanes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 13b267c..0b0ee5f 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,10 +1,9 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; import java.awt.EventQueue; -import java.awt.Toolkit; - import javax.swing.JFrame; import javax.swing.JPanel; +import javax.swing.border.EmptyBorder; public class MouseGame extends JFrame { @@ -36,6 +35,12 @@ public class MouseGame extends JFrame { setBounds(100, 100, 900, 650); + contentPane = new JPanel(); + contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); + setContentPane(contentPane); + contentPane.setLayout(null); + + }//end standardkonstruktor