From 0ded7c1370ea589beb29d8c9e671ed91ecf6b794 Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 10:33:59 +0100 Subject: [PATCH] =?UTF-8?q?[SnakeGame=20Class]:=20hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?Panels=2017?= 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 7ddca0a..ce7202f 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 @@ -33,6 +33,7 @@ public class SnakeGame extends JFrame { public JPanel panel14; public JPanel panel15; public JPanel panel16; + public JPanel panel17; public int breite = 1200; public int hoehe = 600; @@ -174,6 +175,13 @@ public class SnakeGame extends JFrame { panel16.setBackground(Color.BLACK); cP.add(panel16); + + panel17 = new JPanel(); + panel17.setBounds(700, 200, 100, 100); + panel17.setVisible(true); + panel17.setBackground(Color.BLACK); + + cP.add(panel17); } public JPanel getPanel1() {