<Swing Dev> RFR: 8268084: [macos] Disabled JMenuItem arrow is not disabled [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Tue Sep 7 11:25:36 UTC 2021


On Sat, 4 Sep 2021 11:06:14 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> You need to override the paintIcon method in the InvertableImageIcon returned by the AquaImageFactory.getMenuArrowIcon() or you can create `class MenuArrowIcon extends InvertableImageIcon,` and override it there.
>> 
>> Also take a look to another usage of InvertableImageIcon for "MenuItemCheckIcon", should we disable it as well?
>
> MenuItemCheckIcon disable-ness is also solved along with this fix.
> JCheckBoxMenuItem component for MenuItemCheckIcon test is added additionally.

Any more comments on this?

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

PR: https://git.openjdk.java.net/jdk/pull/5310


More information about the swing-dev mailing list