-
Bug
-
Resolution: Fixed
-
P2
-
6u10
-
b09
-
x86
-
windows_vista
-
Verified
Two focus border can be seen for jtree , jtable & jlist in 6u10 b08 pit build , this is a regression of http://monaco.sfbay/detail.jsf?cr=6596198. According to the focus specification there should be only one focus owner, No matter how many contexts. You can refer to http://download.java.net/jdk7/docs/api/java/awt/KeyboardFocusManager.html ,third paragraph last line. But in 6u10 b08 build , i can see both the container as well as the component has the focus owner. This is incorrect. Only focus owner should have the focus border . I have attached the screen shot of the same.
Step to reproduce:
--------------------
1) Run SwingSet2.
2) Select FileChooser Demo.
3) Click on the "Show Plain JFileChooser" button. Observer that file view is in "List view".
4) Get the focus to the File View using tab. Observe that both the list & the first filename or folder name (cell) is having the focus. If you see the same then the bug is reproduce.
Step to reproduce:
-------------------
1) Run SwingSet2.
2) Select "JTree demo".
3) select any node. Observe that both the container & node has got the focus border. To see the issue clearly, press CTRL + spacebar & observe that selection color gets disappear & you can see only focus border on the selected node. If you see both the container & node having the focus border then the bug is reproduced.
Step to reproduce:
------------------
1) Rub SwingSet2.
2) Select "Table Demo"
3) Click on any table cell. Press Ctrl + Space bar . Observe that both the table & cell having the focus border. If you see the same, then the bug is reproduced.
Step to reproduce:
--------------------
1) Run SwingSet2.
2) Select FileChooser Demo.
3) Click on the "Show Plain JFileChooser" button. Observer that file view is in "List view".
4) Get the focus to the File View using tab. Observe that both the list & the first filename or folder name (cell) is having the focus. If you see the same then the bug is reproduce.
Step to reproduce:
-------------------
1) Run SwingSet2.
2) Select "JTree demo".
3) select any node. Observe that both the container & node has got the focus border. To see the issue clearly, press CTRL + spacebar & observe that selection color gets disappear & you can see only focus border on the selected node. If you see both the container & node having the focus border then the bug is reproduced.
Step to reproduce:
------------------
1) Rub SwingSet2.
2) Select "Table Demo"
3) Click on any table cell. Press Ctrl + Space bar . Observe that both the table & cell having the focus border. If you see the same, then the bug is reproduced.