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

Parent dn't get the focus after dialog is closed if security warning is applied

XMLWordPrintable

    • b01
    • b01
    • sparc
    • solaris_10
    • Verified

        I have a frame which contains a button. Pressing on the button shows a dialog. When i press the escape key on the dialog , the dialog gets closed but parent is not getting the focus. This happens only if program is started with -Djava.security.manager. It works fine if security option is not applied. This works fine even in 6u10 with the security option, but fails from 6u10 b01 & b02 promoted build. Hence its a regression.

        Step to reproduce:-
        -------------------
        1) Run the attached porogram.
        java -Djava.security.manager WindowTest
        2) Click the button on the frame. A dialog is seen.
        3)Press 'Escape' key, Dialog gets closed. But Observe that focus is not on the button of the frame. If you see the same , then the bug is reproduced.

              ant Anton Tarasov (Inactive)
              lpremkumsunw Lawrence Premkumar1 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: