[OpenJDK 2D-Dev] RFR: 8269951: [macos] Focus not painted in JButton when setBorderPainted(false) is invoked
kizune at openjdk.java.net
Sun Aug 15 11:31:30 UTC 2021
On Thu, 12 Aug 2021 18:51:10 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> Probably solution should be somewhere similar to this one
That works for icons but for text it would create a terrible mess, text with glow effect will be unreadable. I made code that draws the focus ring instead without drawing the rest of the border.
More information about the 2d-dev