[OpenJDK 2D-Dev] RFR: 8269951: [macos] Focus not painted in JButton when setBorderPainted(false) is invoked

Sergey Bylokhov serb at openjdk.java.net
Thu Aug 12 02:18:23 UTC 2021

On Wed, 11 Aug 2021 11:22:50 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> Initial implementation and a test case.
> The problem is that Aqua LaF shows the focused component with the glow on the border, hence when the border is not painted the foxus is not displayed. The idea is to paint the glowing border on the focused component anyways.

Painting the border while the user tries to disable the border via setBorderPainted(false) does not look like a correct solution. The user might be drawn something there already. I remember we discussed a similar a11y bug related to focus and the only possible solution was to draw the focus ourselves or request this feature in the JRS.


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

More information about the 2d-dev mailing list