- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    9, 11, 16, 17, 18
- 
        b11
- 
        x86, arm
- 
        os_x
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8273767 | 17.0.2 | Christoph Langer | P3 | Resolved | Fixed | b01 | 
| JDK-8273081 | 11.0.14-oracle | Alexander Zuev | P3 | Resolved | Fixed | b01 | 
| JDK-8273890 | 11.0.14 | Martin Doerr | P3 | Resolved | Fixed | b01 | 
This can be reproduced with SwingSet2 with ButtonDemo by unsetting "Paint Border" checkbox and trying to navigate by pressing tab and + shift tab to move the focus from one button to another button. In order to make sure that focus is moving from one button to another wrote a testcase to add the focus listener to buttons. Please see the attached testcase.
Step to reproduce:
1) Run the attached testcase. You will see a checkbox representing "Button Border Paint" and three button to test focus traversal.
2) Press Tab key so that focus is moves from one button to another. Observe that focus border is seen.
3) Uncheck "Button Border Painted" checkbox and press tab key to move focus from one button to another. If you see that focus border is not seen but events are printed on the console then the bug is reproduced.
This works as expected on windows, ubuntu but fails on 11.2.1 Bug Sur arm64 & MacOS Big Sur 11.4 x84_64
- backported by
- 
                    JDK-8273081 [macos] Focus not painted in JButton when setBorderPainted(false) is invoked -           
- Resolved
 
-         
- 
                    JDK-8273767 [macos] Focus not painted in JButton when setBorderPainted(false) is invoked -           
- Resolved
 
-         
- 
                    JDK-8273890 [macos] Focus not painted in JButton when setBorderPainted(false) is invoked -           
- Resolved
 
-         
- links to
- 
                     Commit
        openjdk/jdk11u-dev/0da130ed Commit
        openjdk/jdk11u-dev/0da130ed
- 
                     Commit
        openjdk/jdk17u/f8ecff48 Commit
        openjdk/jdk17u/f8ecff48
- 
                     Commit
        openjdk/jdk/481c1f05 Commit
        openjdk/jdk/481c1f05
- 
                     Review
        openjdk/jdk11u-dev/344 Review
        openjdk/jdk11u-dev/344
- 
                     Review
        openjdk/jdk17u/77 Review
        openjdk/jdk17u/77
- 
                     Review
        openjdk/jdk/5082 Review
        openjdk/jdk/5082