Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6507476

XEmbeddedFrame gets focused when a modal dialog is shown

XMLWordPrintable

    • b09
    • generic
    • linux
    • Verified

        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.

              art Artem Ananiev (Inactive)
              art Artem Ananiev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: