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

Alexey Ivanov aivanov at openjdk.org
Thu Jun 26 12:24:33 UTC 2025


On Thu, 26 Jun 2025 12:17:52 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> When JRadioButtonMenuItem is called with imageIcon, then only imageIcon is shown without radiobutton in WIndowsLookAndFeel as there was no provision of drawing the radiobutton alongside icon.
>> If icon is not there, the radiobutton is drawn. Added provision of drawing the radiobutton windows Skin even when imageIcon is present.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   MenuItem with icon fix

Your latest change has fixed the position of the icon for a regular `JMenuItem`.

> > * Text strings will all align. Always
>
> Current PR doesnt have this..Text string is not aligned for item that doesn't have iconimage with item that does have iconimage. I will fix this.

This still remain unresolved: the text of all menu items should be aligned.

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

PR Comment: https://git.openjdk.org/jdk/pull/23324#issuecomment-3008298036


More information about the client-libs-dev mailing list