changeset 8144:e70d57808ef0

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