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

Antonio Vieiro avieiro at openjdk.org
Tue Sep 16 07:44:59 UTC 2025


> 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.

Antonio Vieiro has updated the pull request incrementally with one additional commit since the last revision:

  Drop JDK-8216329 chunks from WindowsMenuItemUI.java

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

Changes:
  - all: https://git.openjdk.org/jdk11u/pull/104/files
  - new: https://git.openjdk.org/jdk11u/pull/104/files/90176056..23969ba3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u&pr=104&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk11u&pr=104&range=01-02

  Stats: 53 lines in 1 file changed: 0 ins; 53 del; 0 mod
  Patch: https://git.openjdk.org/jdk11u/pull/104.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u.git pull/104/head:pull/104

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


More information about the jdk-updates-dev mailing list