Browse Source

[SnakeGame Class]: hinzufügen der Panel 11&12

remotes/origin/SnakeGame
fdai7551 2 years ago
parent
commit
87f7705d52
  1. 16
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/SnakeGame.java

16
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 panel8;
public JPanel panel9; public JPanel panel9;
public JPanel panel10; public JPanel panel10;
public JPanel panel11;
public JPanel panel12;
public int breite = 1200; public int breite = 1200;
public int hoehe = 600; public int hoehe = 600;
@ -126,6 +128,20 @@ public class SnakeGame extends JFrame {
panel10.setBackground(Color.BLACK); panel10.setBackground(Color.BLACK);
cP.add(panel10); 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() { public JPanel getPanel1() {

Loading…
Cancel
Save