-
Bug
-
Resolution: Fixed
-
P2
-
6
-
b09
-
generic
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2148530 | 6u2 | Sean Coffey | P3 | Resolved | Fixed | b03 |
Tonga test AWT_SWT/Automated//Modality fails with two error messages:
FAILURE: SWT button got selected inspite of modal dialog
FAILURE: AWT button gained focus inspite of modal dialog
The first is the common problem: there is no API for AWT embedded frame to notify its embedding container (SWT shell) that some modal dialog is shown. Thus, when user clicks on the SWT button, SWT shell successfully activated.
However, the second failure is related to AWT. AWT components shouldn't get focus when their top-level window (even if this window is embedded frame) is blocked by modal dialog.
FAILURE: SWT button got selected inspite of modal dialog
FAILURE: AWT button gained focus inspite of modal dialog
The first is the common problem: there is no API for AWT embedded frame to notify its embedding container (SWT shell) that some modal dialog is shown. Thus, when user clicks on the SWT button, SWT shell successfully activated.
However, the second failure is related to AWT. AWT components shouldn't get focus when their top-level window (even if this window is embedded frame) is blocked by modal dialog.
- backported by
-
JDK-2148530 XEmbeddedFrame gets focused when a modal dialog is shown
-
- Resolved
-