From 8649c3f70c006207fbeb0008c4aa88fedebf9dd4 Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Wed, 1 Feb 2023 10:15:06 +0100 Subject: [PATCH] =?UTF-8?q?[SnakeGame=20Class]:=20hinzuf=C3=BCgen=20der=20?= =?UTF-8?q?Panel=206&7?= 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 defbc33..4ba3f0e 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 @@ -41,6 +41,8 @@ public class SnakeGame extends JFrame { public JPanel panel3; public JPanel panel4; public JPanel panel5; + public JPanel panel6; + public JPanel panel7; public int breite = 1200; public int hoehe = 600; @@ -105,6 +107,20 @@ public class SnakeGame extends JFrame { panel5.setBackground(Color.BLACK); cP.add(panel5); + + panel6 = new JPanel(); + panel6.setBounds(800, 0, 100, 100); + panel6.setVisible(true); + panel6.setBackground(Color.BLACK); + + cP.add(panel6); + + panel7 = new JPanel(); + panel7.setBounds(300, 100, 100, 100); + panel7.setVisible(true); + panel7.setBackground(Color.BLACK); + + cP.add(panel7); } public JPanel getPanel1() {