<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 20:57:25 UTC 2021
On Mon, 16 Aug 2021 19:45:11 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> src/java.desktop/macosx/classes/com/apple/laf/AquaButtonUI.java line 340:
>>
>>> 338: Color ringColor = UIManager.getColor("Focus.color");
>>> 339: g.setColor(ringColor);
>>> 340: g.drawRoundRect(5, 3, b.getWidth() - 10, b.getHeight() - 7, 15, 15);
>>
>> Don't you need to restore the properties of Graphics2D?
>
>> Don't you need to restore the properties of Graphics2D?
>
> I might as well.
What about the color property?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5082
More information about the swing-dev
mailing list