From 9f2ea566d883ec70270c765bb83473df90299d78 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 13:03:51 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20Hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?inneren=20Panels.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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 fb4e813..c1a980a 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 @@ -9,6 +9,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; import javax.swing.border.EmptyBorder; +import javax.swing.border.LineBorder; public class MouseGame extends JFrame { @@ -61,8 +62,16 @@ public class MouseGame extends JFrame { lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 30)); lblNewLabel.setBounds(809, 531, 67, 49); contentPane.add(lblNewLabel); + + JPanel panel = new JPanel(); + panel.setBorder(new LineBorder(new Color(0, 0, 0), 2)); + panel.setForeground(new Color(0, 0, 0)); + panel.setBounds(103, 11, 696, 569); + contentPane.add(panel); + panel.setLayout(null); + }//end standardkonstruktor