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

Andrew John Hughes andrew at openjdk.org
Fri Sep 26 00:14:23 UTC 2025


On Thu, 25 Sep 2025 19:08:29 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 jdk11u, that properly renders JRadioButtonMenuItems with ImageIcons in the Windows Look and Feel on Windows 11.
>> 
>> The new test `test/jdk/javax/swing/JMenuItem/TestRadioAndCheckMenuItemWithIcon.java`  has been slightly refactored in a second commit, since `PassFailJFrame` is not available in `/java/awt/regtesthelpers` in JDK8.
>> 
>> - Passes tier1 tests on all platforms.
>> - Passes the new (manual) test on Windows 11/x86_64 (24H2/26100.6584)
>> 
>> 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.
>
> Antonio Vieiro has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Copyright and newline typo

> Related issues should be backported too, ideally for 2025/10.

I've done 8365389 for [11u](https://github.com/openjdk/jdk11u/pull/105) and [8u](https://github.com/openjdk/jdk8u/pull/79). Testing would be welcome. If we can get those in tomorrow, they will make it before freeze.

The other changes hasn't been pushed to trunk yet, but it is only further cleanup and a test. 8365389 is the fix.

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

PR Comment: https://git.openjdk.org/jdk8u/pull/78#issuecomment-3336306031


More information about the jdk8u-dev mailing list