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

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed May 28 05:49:59 UTC 2025


On Wed, 28 May 2025 05:38:17 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:
> 
>   Text alignment fix

Text alignment fixed .. Current PR now looks like this

![image](https://github.com/user-attachments/assets/9dff3831-7216-434a-b809-ed95dcf9c598)

In SwingSet2, now there will be gap between bullet and text to accomodate non-existing imageicon

![image](https://github.com/user-attachments/assets/f305fdc4-47e2-48ad-a28f-a578d7a4aeff)

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

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


More information about the client-libs-dev mailing list