JDK-4928214 : Getting focus inside JInternalFrame which don't have focus
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-09-25
  • Updated: 2006-05-23
Related Reports
Relates :  
Description
Getting focus inside JInternalFrame which don't have focus border.
Steps to reproduce:
--------------------
1) Run SwingSet2
2) Change Look and feel to Windows Look And Feel.
3) Now notice "Internal Frame generator", Button with fish image have focus while its parent(JInternalFrame) dont have focus border.
4) Now you can move focus inside it using tab key.
5) Once focus reaches textfield "Frame title", You can even type in there.
6) When focus is on textfield, further pressing of tab doesn't move the focus away from textfield.

Ideally when a component have focus than window in which it is present should also have focus.

Note:
- Reproducible on Windows 2k and XP, in Tiger and all previous version of JDK.
- Problem specified in Step 6 is only on Win2k and is coming from Tiger build 19 and onwards only.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
24-09-2004

EVALUATION There are already a number of focus bugs filed against internal frames. This isn't suprising. I need to test this on a windows box. ###@###.### 2003-11-13 The issue of the owning JInternalFrame not getting focus needs to be addressed, although it is not crucial for an update release. As for issue "6", the inability to tab out of the JTextField, I have determined that the problem lies with the FocusTraversalPolicy returning the same component for the next component. I beleive this is the same problem as AWT bug 5070991. Leaving this bug open just to track the first issue.
24-09-2004