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

Alexey Ivanov aivanov at openjdk.org
Tue Jan 28 13:47:47 UTC 2025


On Tue, 28 Jan 2025 03:40:26 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.

test/jdk/javax/swing/JMenuItem/duke.gif line 1:

> 1: GIF89ap!�:,�3f���++3+f+�+�+�UU3UfU�U�U���3�f��������3�f��������3�fՙ������3�f������3333f3�3�3�3+3+33+f3+�3+�3+�3U3U33Uf3U�3U�3U�3�3�33�f3��3��3��3�3�33�f3��3��3��3�3�33�f3ՙ3��3��3�3�33�f3��3��3��ff3fff�f�f�f+f+3f+ff+�f+�f+�fUfU3fUffU�fU�fU�f�f�3f�ff��f��f��f�f�3f�ff��f��f��f�f�3f�ffՙf��f��f�f�3f�ff��f��f����3�f���̙��+�+3�+f�+��+̙+��U�U3�Uf�U��U̙U�����3��f�����̙������3��f�����̙������3��f�ՙ��̙������3��f�����̙����3�f�������+�+3�+f�
 +��+��+��U�U3�Uf�U��U��U�̀̀3̀f̀�̀�̀�̪̪3̪f̪�̪�̪�����3��f�ՙ����������3��f�����������3�f�������+�+3�+f�+��+��+��U�U3�Uf�U��U��U�����3��f�������������3��f�������������3��f�ՙ����������3��f�����������	
Hp1e
�f�B�ʈ�#F���&ŀM��bb`�@b	%�OL�052��,
J��z����
F��l���L�C��1R�o��}�	T�� ����R}�	�ԬU	f��L+װ72��֯?F��O�2�T1�}��
Ī;

Can't you generate an image on the fly? It doesn't have to be Duke, any image like a red square or rectangle will do.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23324#discussion_r1932193033


More information about the client-libs-dev mailing list