<Swing Dev> RFR: 8269951: [macos] Focus not painted in JButton when setBorderPainted(false) is invoked [v4]
Sergey Bylokhov
serb at openjdk.java.net
Mon Aug 16 23:49:30 UTC 2021
On Mon, 16 Aug 2021 23:39:05 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> What about the color property?
>
>> What about the color property?
>
> That would be unnecessary, whoever does painting does not just assumes that the color is set to his preferred choice, everywhere in the code color is set up before doing any painting and i do not see anywhere that old color being preserved.
You can trace the usage of graphics.getColor() for example in AquaMenuItemUI/WindowsMenuUI/BevelBorder/etc to check that the old color property is usually saved and then restored.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5082
More information about the swing-dev
mailing list