From c70f607bd16b8af74fccf357523dd73eca1071ac Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Wed, 25 Jan 2023 10:38:47 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20Hinzuf=C3=BCgen=20der=20?= =?UTF-8?q?Restefunktion=20f=C3=BCr=20die=20W=C3=A4nde.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 7 +++++-- 1 file changed, 5 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 d46072e..a73c94c 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 @@ -83,16 +83,19 @@ public class MouseGame extends JFrame { panel.add(nordWand); JPanel suedWand = new JPanel(); + reset(suedWand); suedWand.setBackground(new Color(0, 0, 0)); suedWand.setBounds(0, 559, 696, 10); panel.add(suedWand); - JPanel ostWand = new JPanel(); + JPanel ostWand = new JPanel(); + reset(ostWand); ostWand.setBackground(new Color(0, 0, 0)); ostWand.setBounds(686, 0, 10, 509); panel.add(ostWand); - JPanel westWand = new JPanel(); + JPanel westWand = new JPanel(); + reset(westWand); westWand.setBackground(new Color(0, 0, 0)); westWand.setBounds(0, 60, 10, 509); panel.add(westWand);