Dialog created with Document Model modality with null as parent blocks the Applet.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: deploy
    • None
    • b92
    • x86
    • windows_xp
    • Verified

      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.

            Assignee:
            Margarita Fisher (Inactive)
            Reporter:
            Raghu Nair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: