From 3edcd830b06dc8f4eafef48d85be6b704354b8b2 Mon Sep 17 00:00:00 2001 From: fdai7551 Date: Thu, 2 Feb 2023 11:56:32 +0100 Subject: [PATCH] refactoring:[SnakeGame Class]: breiteP1 ausgelagert --- .../de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ec91bbf..0b269a2 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 @@ -103,7 +103,7 @@ public class SnakeGame extends JFrame { cP.setLayout(null); panel1 = new JPanel(); - panel1.setBounds(xCords1, yCords1, hoeheP1, 100); + panel1.setBounds(xCords1, yCords1, hoeheP1, breiteP1); panel1.setVisible(true); panel1.setBackground(Color.BLACK);