Browse Source

create weapon label name

master
Yazan Alaamer 2 years ago
parent
commit
502ebfbadf
  1. 8
      src/main/java/game/StartDarkSoulsGame.java

8
src/main/java/game/StartDarkSoulsGame.java

@ -23,6 +23,7 @@ public class StartDarkSoulsGame {
JLabel hpLabel;
JLabel hpLabelNumber;
JLabel weaponLabel;
JLabel weaponLabelName;
Font titelFont = new Font("Times new Roman", Font.PLAIN, 90);
Font normalFont = new Font ("Times new Roman", Font.PLAIN, 28);
JButton startButton;
@ -126,7 +127,12 @@ public class StartDarkSoulsGame {
weaponLabel = new JLabel("Weapon:");
weaponLabel.setFont(normalFont);
weaponLabel.setForeground(Color.white);
playerPanel.add(weaponLabel);
playerPanel.add(weaponLabel);
weaponLabelName = new JLabel();
weaponLabelName.setFont(normalFont);
weaponLabelName.setForeground(Color.white);
playerPanel.add(weaponLabelName);
con.add(playerPanel);
}

Loading…
Cancel
Save