Browse Source

[SnakeGame Class]: hinzufügen des Panels 13

remotes/origin/SnakeGame
fdai7551 2 years ago
parent
commit
609e30379c
  1. 8
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java

8
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 panel10;
public JPanel panel11; public JPanel panel11;
public JPanel panel12; public JPanel panel12;
public JPanel panel13;
public int breite = 1200; public int breite = 1200;
public int hoehe = 600; public int hoehe = 600;
@ -142,6 +143,13 @@ public class SnakeGame extends JFrame {
panel12.setBackground(Color.BLACK); panel12.setBackground(Color.BLACK);
cP.add(panel12); 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() { public JPanel getPanel1() {

Loading…
Cancel
Save