-
Bug
-
Resolution: Fixed
-
P3
-
6
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2151578 | 6u10 | Anton Tarasov | P3 | Closed | Fixed | b10 |
I have non-focusable frame with a button. On clicking the button, I am opening a modeless dialog with a button. When the dialog appears, the button on the dialog seems to have the focus but the dialog is inactive. Hence pressing space bar has no effect. The expected behavior should be that the button on the dialog should gain focus when the dialog is made visible and it should respond to keyboard inputs.
This happens only on Win32 and works fine on XToolkit. This happens only the first time the dialog is shown. This is reproducible on Mustang-b104 but not reproducible on Tiger-FCS. Hence it is a regression from Tiger. This is not reproducible with Mustang-b59d. This is reproducible in Swing also with JOptionPane where the parent frame of the JOptionPane is non-focusable and it is set with APPLICATION MODALITY EXCLUSION.
I have attached a sample test which would reproduce the above bug. Click on the button in the frame. A dialog would appear. Check if dialog is active. If not, the bug is reproduced.
This happens only on Win32 and works fine on XToolkit. This happens only the first time the dialog is shown. This is reproducible on Mustang-b104 but not reproducible on Tiger-FCS. Hence it is a regression from Tiger. This is not reproducible with Mustang-b59d. This is reproducible in Swing also with JOptionPane where the parent frame of the JOptionPane is non-focusable and it is set with APPLICATION MODALITY EXCLUSION.
I have attached a sample test which would reproduce the above bug. Click on the button in the frame. A dialog would appear. Check if dialog is active. If not, the bug is reproduced.
- backported by
-
JDK-2151578 REG: Modeless dialog not getting active the first time when the parent frame is non-focusable, Win32
- Closed
- relates to
-
JDK-6599270 Using EmbeddedFrame in SWT leads to a hang
- Closed