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

REG: Modeless dialog not getting active the first time when the parent frame is non-focusable, Win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b71
    • Introduced In Version:
      6
    • Resolved In Build:
      b21
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Not verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ant Anton Tarasov
                Reporter:
                pmohansunw Praveen Mohan (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: