From 87f7705d529bfcfaa4cd8c249c21d58c653afade Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 10:24:30 +0100 Subject: [PATCH] =?UTF-8?q?[SnakeGame=20Class]:=20hinzuf=C3=BCgen=20der=20?= =?UTF-8?q?Panel=2011&12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JavaGamelauncher/SnakeGame.java | 16 ++++++++++++++++ 1 file changed, 16 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 92bac68..9ce8249 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 @@ -27,6 +27,8 @@ public class SnakeGame extends JFrame { public JPanel panel8; public JPanel panel9; public JPanel panel10; + public JPanel panel11; + public JPanel panel12; public int breite = 1200; public int hoehe = 600; @@ -126,6 +128,20 @@ public class SnakeGame extends JFrame { panel10.setBackground(Color.BLACK); cP.add(panel10); + + panel11 = new JPanel(); + panel11.setBounds(700, 100, 100, 100); + panel11.setVisible(true); + panel11.setBackground(Color.BLACK); + + cP.add(panel11); + + panel12 = new JPanel(); + panel12.setBounds(800, 100, 100, 100); + panel12.setVisible(true); + panel12.setBackground(Color.BLACK); + + cP.add(panel12); } public JPanel getPanel1() {