6988176: There is focus painted inside the button.
authorrupashka
Wed, 02 Feb 2011 18:41:30 +0300
changeset 8144 e70d57808ef0
parent 8143 1b0feb422660
child 8145 6714ca3d6773
6988176: There is focus painted inside the button. Reviewed-by: alexp
jdk/src/share/classes/sun/swing/WindowsPlacesBar.java
--- a/jdk/src/share/classes/sun/swing/WindowsPlacesBar.java	Wed Feb 02 18:37:31 2011 +0300
+++ b/jdk/src/share/classes/sun/swing/WindowsPlacesBar.java	Wed Feb 02 18:41:30 2011 +0300
@@ -120,6 +120,7 @@
                 buttons[i].setForeground(fgColor);
             }
             buttons[i].setMargin(new Insets(3, 2, 1, 2));
+            buttons[i].setFocusPainted(false);
             buttons[i].setIconTextGap(0);
             buttons[i].setHorizontalTextPosition(JToggleButton.CENTER);
             buttons[i].setVerticalTextPosition(JToggleButton.BOTTOM);