<Swing Dev> RFR: 8268084: [macos] Disabled JMenuItem arrow is not disabled [v2]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Fri Sep 3 04:16:28 UTC 2021
On Thu, 2 Sep 2021 18:10:55 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Cache icon
>
> src/java.desktop/macosx/classes/com/apple/laf/AquaMenuPainter.java line 419:
>
>> 417: } else {
>> 418: arrowIcon.paintIcon(c, g, arrowIconRect.x, arrowIconRect.y);
>> 419: }
>
> It will be even better to implement it in the same way as done in other L&fs like windows/metal.
I will like to know how because as it is pointed out, paintArrow delegates drawing to ImageIcon#paintIcon which is in shared code and this is mac specific issue so it needs to be handled before we call ImageIcon#paintIcon
-------------
PR: https://git.openjdk.java.net/jdk/pull/5310
More information about the swing-dev
mailing list