-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
If JRadioButton has only icon(without text), painting focus around the icon is not drawn.
Steps)
1. Run SwingSet
2. Select 'RadioButtons' tab.
3. Make sure paintborder is unchecked and paintfocus is checked.
4. Click buttons.
5. You will see image button is not painting focus.
This looks like intentional after investigating BasicRadioButtonUI.java. It paints focus only when it has texts(ln#162)
I suggests painting focus even the radio button has only icon and the reasons are:
"setFocusPainted(true) should be working no matter what text or icon contents"
bae-chul.kim@eng 1998-04-20
Steps)
1. Run SwingSet
2. Select 'RadioButtons' tab.
3. Make sure paintborder is unchecked and paintfocus is checked.
4. Click buttons.
5. You will see image button is not painting focus.
This looks like intentional after investigating BasicRadioButtonUI.java. It paints focus only when it has texts(ln#162)
I suggests painting focus even the radio button has only icon and the reasons are:
"setFocusPainted(true) should be working no matter what text or icon contents"
bae-chul.kim@eng 1998-04-20
- relates to
-
JDK-6316684 JButtons should draw their focus on Windows XP
-
- Resolved
-
-
JDK-4130798 MotifRadioButtonUI: paintFocus() method needs more careful logic
-
- Closed
-
- links to
-
Review openjdk/jdk/13153