I have a frame , which contains a button. when i press the button a dialog is displayed , each dialog intend has button, when pressing the button on the dialog ,shows the dialog.
I show around 15 dialog, when i press the escape key faster to close the dialogs , the parent dialog dn't gets the focus. Hence can't close the dialog. This happens only when testcase is launched using -Djava.security.manager.
Step to Reproduce:-
1) Run the attached testcase.
java -Djava.security.manager WindowTest
2) you will see the frame with the button, press space bar or click on the button. You see the dialog.
3) Repeat step(2) for some 10 to 15 times.
4) Press ESCAPE key faster,so that dialog gets closed. If the parent's dialog dn't get the focus & can't able to close the dialog , then the bug is reproduced.