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

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Aug 12 17:18:25 UTC 2025


On Sun, 10 Aug 2025 12:58:58 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 6c48f4ed
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6c48f4ed707bf0b15f9b6098de30db8aae6fa40f
Stats:     630 lines in 8 files changed: 524 ins; 81 del; 25 mod

8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel

Reviewed-by: prr, aivanov
Backport-of: e29346dbd6328dcadc347a70d8c06ce141efef02

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

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


More information about the client-libs-dev mailing list