[jdk8u] Integrated: 8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel
Antonio Vieiro
avieiro at openjdk.org
Fri Sep 26 00:14:23 UTC 2025
On Thu, 25 Sep 2025 07:11:15 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.
This pull request has now been integrated.
Changeset: 333a5510
Author: Antonio Vieiro <avieiro at openjdk.org>
Committer: Andrew John Hughes <andrew at openjdk.org>
URL: https://git.openjdk.org/jdk8u/commit/333a55103ed3e480793539f7329bff6e23771047
Stats: 700 lines in 8 files changed: 593 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: 31fc05c4721aa1aaf12e5f326a52c1db48006abb
-------------
PR: https://git.openjdk.org/jdk8u/pull/78
More information about the jdk8u-dev
mailing list