RFR: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel [v24]
Prasanta Sadhukhan
psadhukhan at openjdk.org
Tue Mar 25 03:05:12 UTC 2025
On Wed, 12 Mar 2025 11:00:30 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> When JRadioButtonMenuItem is called with imageIcon, then only imageIcon is shown without radiobutton in WIndowsLookAndFeel as there was no provision of drawing the radiobutton alongside icon.
>> If icon is not there, the radiobutton is drawn. Added provision of drawing the radiobutton windows Skin even when imageIcon is present.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Review comments fix
> Screenshot from Windows 10 - just for the reference. 
@azuev-java Thanks for WIndows 10 screenshot..
The program renders "Radio Option 1" and "Radio Option 2" with imageicon and "Radio Option 3" without imageicon,
and initially selects "Radio Option 1"
The program selects "Radio Option 1" initially so it should be highlighted to indicate it is selected (this is what is done in Windows 10 Java side)

Did you see any highlight in "Radio Option 1" like above when you render the program as it is, before selecting "Radio Option 3" (which is what I did manually )
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23324#issuecomment-2749933651
More information about the client-libs-dev
mailing list