Browse Source

[SnakeGame Class]: hinzufügen der Panel 6&7

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

@ -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() {

Loading…
Cancel
Save