From f750f2504373c8cc270c1e5aeec388d934147b47 Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 10:13:23 +0100 Subject: [PATCH] =?UTF-8?q?[SnakeGame=20Class]:=20hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?Panels=205?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/SnakeGame.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java index d673a1c..defbc33 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java @@ -40,6 +40,7 @@ public class SnakeGame extends JFrame { public JPanel panel2; public JPanel panel3; public JPanel panel4; + public JPanel panel5; public int breite = 1200; public int hoehe = 600; @@ -97,6 +98,13 @@ public class SnakeGame extends JFrame { panel4.setBackground(Color.BLACK); cP.add(panel4); + + panel5 = new JPanel(); + panel5.setBounds(700, 0, 100, 100); + panel5.setVisible(true); + panel5.setBackground(Color.BLACK); + + cP.add(panel5); } public JPanel getPanel1() {