JDK-5018557 : Default selected tab is not gaining focus when clicked for first time
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2004-03-23
  • Updated: 2004-03-31
  • Resolved: 2004-03-31
Related Reports
Duplicate :  
Description
When we click on default selected tab, the focus is not traversed to this tab and focus border is not shown. Click on some other tab in the same JTabbedPane and focus is transferred. On further clicks the focus traversal takes place.

Compile and run JTabbedPaneFocusTest
Click on tabs "LEFT 0", "BOTTOM 0", "RIGHT 0".
If focus is not getting traversed to this tab and no focus border is drawn bug is reproduced.

Comments
EVALUATION There is indeed something wrong with JTabbedPanes and focus. This will be resolved under the bug number 5018529. Closing as a duplicate. ###@###.### 2004-03-31
31-03-2004