From 6b9ffb0682662cc9d3827139b20b74ac1d2954cb Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Fri, 20 Jan 2023 21:38:48 +0100 Subject: [PATCH] set focus paninted choicses & start buttons to false --- src/main/java/game/StartDarkSoulsGame.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 017aaa8..7dcfebd 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/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();