RFR: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel [v33]

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Jul 16 04:42:51 UTC 2025


On Tue, 15 Jul 2025 19:31:54 GMT, Phil Race <prr at openjdk.org> wrote:

> No issue was raised because no one knew any better. Now we know.

But people would have noted the difference if native app renders it differently in Windows 10..Now both bullet/checkmark and imageicon is superimposed on top of each other..if native app shows it separately I believed people would have complained why JDK was not doing it same..that was my point but anyways..

Also, IIRC the 
checkmark/bullet icon skin is different in Windows 10 where checkmark/bullet icon has blue background (not sure if it still has after the Microsoft theme change in Windows 10 as per this statement

> visual "cue" we've relied on for in Windows 10 was just an accident of some theming that is now gone.

)
as compared to Windows 11 where background is transparent 
so image icon position is now varying w.r.t Windows version 
otherwise imageicon and checkmark/bullet space will be overlapped if same Windows 11 alignment code is used for both 10 and 11.

I believe with theming now gone in Windows 10, the skin should be same without background as it is in Windows11.
So, maybe same code will work for both..Will remove the check..

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/23324#discussion_r2209197647


More information about the client-libs-dev mailing list