Browse Source

[SnakeGame Class]: hinzufügen des Panels 18

remotes/origin/SnakeGame
fdai7551 2 years ago
parent
commit
58469f74e5
  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

@ -34,6 +34,7 @@ public class SnakeGame extends JFrame {
public JPanel panel15; public JPanel panel15;
public JPanel panel16; public JPanel panel16;
public JPanel panel17; public JPanel panel17;
public JPanel panel18;
public int breite = 1200; public int breite = 1200;
public int hoehe = 600; public int hoehe = 600;
@ -182,6 +183,13 @@ public class SnakeGame extends JFrame {
panel17.setBackground(Color.BLACK); panel17.setBackground(Color.BLACK);
cP.add(panel17); cP.add(panel17);
panel18 = new JPanel();
panel18.setBounds(800, 200, 100, 100);
panel18.setVisible(true);
panel18.setBackground(Color.BLACK);
cP.add(panel18);
} }
public JPanel getPanel1() { public JPanel getPanel1() {

Loading…
Cancel
Save