[jdk11u] Integrated: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel

Antonio Vieiro avieiro at openjdk.org
Wed Sep 24 18:14:04 UTC 2025


On Wed, 10 Sep 2025 09:40: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) that properly renders `JRadioButtonMenuItem`s with `ImageIcon`s in the Windows Look and Feel. 
> 
> Mostly clean but for copyright issues, also the multi-line string in `test/jdk/javax/swing/JMenuItem/TestRadioAndCheckMenuItemWithIcon.java` was replaced with string concatenation.
> 
> The issue is reproducible in OpenJDK 11 with the Windows Look and Feel on Windows 11.
> 
> - Passes `tier1` tests on all platforms.
> - Passes the new (manual) test on Windows 11/x86_64 (24H2/26100.6584)
> - SwingSet2 looks normal (tested with Windows Look And Feel and the Windows Classic Look and Feel)
> 
> NOTE: Related issues [JDK-8365375](https://bugs.openjdk.org/browse/JDK-8365375), [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 pull request has now been integrated.

Changeset: 31fc05c4
Author:    Antonio Vieiro <avieiro at openjdk.org>
URL:       https://git.openjdk.org/jdk11u/commit/31fc05c4721aa1aaf12e5f326a52c1db48006abb
Stats:     627 lines in 8 files changed: 520 ins; 82 del; 25 mod

8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel
8365375: Method SU3.setAcceleratorSelectionForeground assigns to acceleratorForeground

Reviewed-by: sgehwolf, andrew
Backport-of: 2ed2edb244d0a6bf1a156f2a4a346986388c4236

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

PR: https://git.openjdk.org/jdk11u/pull/104


More information about the jdk-updates-dev mailing list