Browse Source

set focus paninted choicses & start buttons to false

master
Yazan Alaamer 2 years ago
parent
commit
6b9ffb0682
  1. 5
      src/main/java/game/StartDarkSoulsGame.java

5
src/main/java/game/StartDarkSoulsGame.java

@ -57,6 +57,7 @@ public class StartDarkSoulsGame {
titleNamePanel.add(titelNameLabel);
StartButtonPanel.add(startButton);
startButton.setFocusPainted(false);
con.add(titleNamePanel);
con.add(StartButtonPanel);
@ -91,24 +92,28 @@ public class StartDarkSoulsGame {
choice1.setBackground(Color.black);
choice1.setForeground(Color.white);
choice1.setFont(normalFont);
choice1.setFocusPainted(false);
choiceButtonPanel.add(choice1);
choice2 = new JButton("Choice 2");
choice2.setBackground(Color.black);
choice2.setForeground(Color.white);
choice2.setFont(normalFont);
choice2.setFocusPainted(false);
choiceButtonPanel.add(choice2);
choice3 = new JButton("Choice 3");
choice3.setBackground(Color.black);
choice3.setForeground(Color.white);
choice3.setFont(normalFont);
choice3.setFocusPainted(false);
choiceButtonPanel.add(choice3);
choice4 = new JButton("Choice 4");
choice4.setBackground(Color.black);
choice4.setForeground(Color.white);
choice4.setFont(normalFont);
choice4.setFocusPainted(false);
choiceButtonPanel.add(choice4);
playerPanel = new JPanel();

Loading…
Cancel
Save