JDK-6253919 : XAWT. TextField in a Window having an iconified frame as parent does not gain focus
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2005-04-12
  • Updated: 2011-04-28
Related Reports
Relates :  
Description
I have a TextFied in a window having an iconified frame as parent. The frame is in iconified state and the window is visible when the application is launched. When the TextField is clicked, it does not gain focus. 

This happens only with XToolkit. With Motif and in Windows, the TextField gains focus. 

To reproduce:
1. Run the attached code.
2. Click on the text field. If the TextField does not gain focus, bug is reproduced.
###@###.### 2005-04-12 13:10:38 GMT

Comments
EVALUATION Here's a spec statement for Window.isFocusable: <<Returns whether this Window is focused. If there exists a focus owner, the focused Window is the Window that is, or contains, that focus owner. If there is no focus owner, then no Window is focused. If the focused Window is a Frame or a Dialog it is also the active Window. Otherwise, the active Window is the first Frame or Dialog that is an owner of the focused Window.>> This makes the following statement true: an owner of a focused window (not Frame/Dialog) is active window. And from this we can derive that an owner, unable to be active, makes its owned window unable to be focused. So, the behaviour on XAWT is in consent with the spec, that is not the case on Windows and Motif.
01-09-2005

EVALUATION Needs to be evaluated to make sure we don't miss any critical behavior ###@###.### 2005-05-26 12:46:08 GMT
26-05-2005