From f6399cc236b51cb7560c2a8fcbcfe88a15ed3b7c Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Mon, 16 Jan 2023 11:10:11 +0100 Subject: [PATCH] [GamelauncherMain Class]: Erstellen des Panels. --- .../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 b447017..058aa5d 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 @@ -4,6 +4,7 @@ import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; +import javax.swing.border.EmptyBorder; /** * Hello world! @@ -54,7 +55,11 @@ public class GamelauncherMain extends JFrame { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, breite, hoehe); - + contentPane = new JPanel(); + contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); + setContentPane(contentPane); + contentPane.setLayout(null); + }