From 609e30379cbbef8f493a315536f314c18fa76cf4 Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 10:25:53 +0100 Subject: [PATCH] =?UTF-8?q?[SnakeGame=20Class]:=20hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?Panels=2013?= 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 9ce8249..89a70c7 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 @@ -29,6 +29,7 @@ public class SnakeGame extends JFrame { public JPanel panel10; public JPanel panel11; public JPanel panel12; + public JPanel panel13; public int breite = 1200; public int hoehe = 600; @@ -142,6 +143,13 @@ public class SnakeGame extends JFrame { panel12.setBackground(Color.BLACK); cP.add(panel12); + + panel13 = new JPanel(); + panel13.setBounds(300, 200, 100, 100); + panel13.setVisible(true); + panel13.setBackground(Color.BLACK); + + cP.add(panel13); } public JPanel getPanel1() {