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

Andrew John Hughes andrew at openjdk.org
Tue Sep 23 15:29:39 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.

This seems a bit premature when the 11u one is still in review. I just left comments about further changes needed there.

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

PR Comment: https://git.openjdk.org/jdk8u/pull/77#issuecomment-3324512498


More information about the jdk8u-dev mailing list