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

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Aug 12 01:32:58 UTC 2025


> Hi all,
> 
>     This pull request contains a backport of commit [e29346db](https://github.com/openjdk/jdk/commit/e29346dbd6328dcadc347a70d8c06ce141efef02) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
> 
>     The commit being backported was authored by Prasanta Sadhukhan on 7 Aug 2025 and was reviewed by Phil Race, Alexander Zuev and Abhishek Kumar.
> 
>     
> The issue is a manual JCK test fails due to lack of demarcation between selected and unselected JRadioButtonMenuItem and JCheckboxMenuItem whereby JDK does not draw bullet/checkmark in WIndows 11 if imgage icon is present as the (position) offset to draw them is same as the image icon position.
> Fix is made to ensure the bullet/checkmark is drawn followed by image icon followed by menu text so that user can distinguish between selected and deselected radiobutton/checkbox menuitem
> 
> CI testing and manual conformance test along with SwingSet2 demo testing is ok

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Fix copy-paste assignment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26717/files
  - new: https://git.openjdk.org/jdk/pull/26717/files/5f4ac2eb..1afd2b3b

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26717&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26717&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/26717.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26717/head:pull/26717

PR: https://git.openjdk.org/jdk/pull/26717


More information about the client-libs-dev mailing list