Dialog with Document Model modality with Parent as null is blocking the Applet it is coming from.(eg: new Dialog((Dialog)null,"Some title",Dialog.ModalityType.DOCUMENT_MODAL) )
Expected behavior : From The Spec:
Creating a document-modal dialog box without an owner :- In this case, because Dialog is a subclass of Window, a Dialog instance automatically becomes the root of the document if it has no owner. Thus, if such a dialog box is document-modal, its scope of blocking is empty, and it behaves the same way as would a modeless dialog box.
Environment : Windows XP Professional. Service Pack2.
browser tested: iexporer, firefox.
Java version : 1.6.0 beta2, b74
Code to reproduce is attached.
How to reproduce:
Unzip the modality.zip to "X" directory
create classes directory under "X".
Compile Util.java and DocumentModal.java to classes directory.
Load DocumentModel.html in IE or Firefox.
Expected behavior : From The Spec:
Creating a document-modal dialog box without an owner :- In this case, because Dialog is a subclass of Window, a Dialog instance automatically becomes the root of the document if it has no owner. Thus, if such a dialog box is document-modal, its scope of blocking is empty, and it behaves the same way as would a modeless dialog box.
Environment : Windows XP Professional. Service Pack2.
browser tested: iexporer, firefox.
Java version : 1.6.0 beta2, b74
Code to reproduce is attached.
How to reproduce:
Unzip the modality.zip to "X" directory
create classes directory under "X".
Compile Util.java and DocumentModal.java to classes directory.
Load DocumentModel.html in IE or Firefox.
- duplicates
-
JDK-6391073 A DOC-MODAL native File-Dialog with a null parent blocks the browser window and the applet
-
- Closed
-