[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:54 UTC 2025
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.
-------------
Commit messages:
- Backport 3758e584e70c230e8d0294b4e9e7723ae2ed0a13
- Update test not to use PassFailJFrame not available in JDK8
- Backport 2ed2edb244d0a6bf1a156f2a4a346986388c4236
Changes: https://git.openjdk.org/jdk8u/pull/77/files
Webrev: https://webrevs.openjdk.org/?repo=jdk8u&pr=77&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8348760
Stats: 670 lines in 8 files changed: 564 ins; 82 del; 24 mod
Patch: https://git.openjdk.org/jdk8u/pull/77.diff
Fetch: git fetch https://git.openjdk.org/jdk8u.git pull/77/head:pull/77
PR: https://git.openjdk.org/jdk8u/pull/77
More information about the jdk8u-dev
mailing list