# HG changeset patch # User rupashka # Date 1296661290 -10800 # Node ID e70d57808ef0b9a11680a7a5226c4e6a428c4913 # Parent 1b0feb422660b0a78c73bed7e3b6162f35786e42 6988176: There is focus painted inside the button. Reviewed-by: alexp diff -r 1b0feb422660 -r e70d57808ef0 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);