changeset 3613:6c4b6780ab20

6988176: There is focus painted inside the button. Reviewed-by: alexp
author rupashka
date Wed, 02 Feb 2011 18:41:30 +0300
parents cbcd461067c5
children 057e9b837105
files src/share/classes/sun/swing/WindowsPlacesBar.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/swing/WindowsPlacesBar.java	Wed Feb 02 18:37:31 2011 +0300
+++ b/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);