Browse Source

[SnakeGame Class]: hinzufügen der Panel 3&4

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

@ -38,6 +38,8 @@ public class SnakeGame extends JFrame {
private JPanel cP;
public JPanel panel1;
public JPanel panel2;
public JPanel panel3;
public JPanel panel4;
public int breite = 1200;
public int hoehe = 600;
@ -79,6 +81,20 @@ public class SnakeGame extends JFrame {
panel2.setBackground(Color.BLACK);
cP.add(panel2);
panel3 = new JPanel();
panel3.setBounds(500, 0, 100, 100);
panel3.setVisible(true);
panel3.setBackground(Color.BLACK);
cP.add(panel3);
panel4 = new JPanel();
panel4.setBounds(600, 0, 100, 100);
panel4.setVisible(true);
panel4.setBackground(Color.BLACK);
cP.add(panel4);
}
}
Loading…
Cancel
Save