RFR: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel [v11]
Alexey Ivanov
aivanov at openjdk.org
Thu Feb 13 12:54:20 UTC 2025
On Thu, 13 Feb 2025 03:23:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Is it mentioned somewhere that Windows 12 will fallback to Windows 10 rendering?
I was mentioned in our, JDK, code.
https://github.com/openjdk/jdk/blob/46a1cb5a4f2eb922e56b221a5420d2ac1204ade5/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicMenuItemUI.java#L663
The condition `System.getProperty("os.name").equals("Windows 11")` would evaluate to `false` in Windows 12, and the rendering would've fell back to Windows 10 way.
You've taken care of this in your latest changeset.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23324#discussion_r1954441223
More information about the client-libs-dev
mailing list