[jdk8u] RFR: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel
Antonio Vieiro
avieiro at openjdk.org
Tue Sep 23 08:32:55 UTC 2025
On Tue, 23 Sep 2025 08:22:41 GMT, Antonio Vieiro <avieiro at openjdk.org> wrote:
> Backport of [JDK-8348760](https://bugs.openjdk.org/browse/JDK-8348760) (P1 - CPU25_10-critical-approved) and [JDK-8365375](https://bugs.openjdk.org/browse/JDK-8365375) from 17 (11 is still pending approval) that properly renders JRadioButtonMenuItems with ImageIcons in the Windows Look and Feel on Windows 11.
>
> The issue is reproducible in OpenJDK 8 with the Windows Look and Feel on Windows 11.
>
> - Passes tier1 tests
> - Passes the new (manual) test on Windows 11/x86_64 (24H2/26100.6584)
>
> The backport is separated in three commits:
>
> - Backport of JDK-8348760
> - Modify the new test `jdk/test/javax/swing/JMenuItem/TestRadioAndCheckMenuItemWithIcon.java` to not depend on `@library /java/awt/regtesthelpers` / `@PassFailJFrame`, since `PassFailJFrame` is not available in JDK8.
> - Backport of JDK-8365375
>
>
>
> NOTE: Related issues [JDK-8365389](https://bugs.openjdk.org/browse/JDK-8365389) and [JDK-8365625](https://bugs.openjdk.org/browse/JDK-8365625) (all P3) will also need to be backported.
The updated `jdk/test/javax/swing/JMenuItem/TestRadioAndCheckMenuItemWithIcon.java` test, showing the `JRadioButtonMenuItem`s in Windows 11 / Windows Look and Feel.
<img width="969" height="762" alt="backports-jdk-8348760-jdk8" src="https://github.com/user-attachments/assets/0d73a821-43b3-4d14-892f-de40d742fdad" />
-------------
PR Comment: https://git.openjdk.org/jdk8u/pull/77#issuecomment-3322921839
More information about the jdk8u-dev
mailing list