On Tue, 28 Jan 2025 08:34:30 GMT, Damon Nguyen <dngu...@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/TestImageIconWithJRadioButtonMenuItem.java 
> line 51:
> 
>> 49:         Verify that for JRadioButtonMenuItem with imageicon,
>> 50:         radiobutton is been shown alongside the imageicon.
>> 51:         If radiobutton is shown, test passes else fails.""";
> 
> Suggestion:
> 
>         One JRadioButtonMenuItem is with imageicon and
>         another one without imageicon.
>         Verify that for JRadioButtonMenuItem with imageicon,
>         radiobutton is been shown alongside the imageicon.
>         If radiobutton is shown, test passes. Else fails.""";
> 
> 
> Just for consistency, I see theres one capital `i`. I guess you can also just 
> title-case all of the UI components. Ex: ImageIcon and RadioButton.

With it's referred to the type `ImageIcon`, both `i` need to be capitalised; on 
the other hand, it doesn't make sense for the tester, as they may know nothing 
about the underlying code and shouldn't know. Just use “image”, it's less 
confusing than imageicon—is it an image, or is it an icon? Both terms have 
meaning in UI.

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

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

Reply via email to