Class ProxyDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ProxyDialog extends JDialog
Proxy Dialog class. This class is little more than a wrapper for JDialog. The caller is responsible for any cleanup actions needed when the proxy dialog is no longer needed, which is not necessary if org.bzdev.swing.ProxyMenuItem is used instead.
See Also:
  • Constructor Details

    • ProxyDialog

      public ProxyDialog(Frame frame, String title, boolean modal)
      Constructor when the owner is a Frame. If the owner is null a shared hidden frame will be used (the same one as for JDialog).
      Parameters:
      frame - the Frame that owns the dialog
      title - the String to display in the dialog's title bar
      modal - specifies with the dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to JDialog.DEFAULT_MODALITY_TYPE; otherwise the dialog is modeless
    • ProxyDialog

      public ProxyDialog(Dialog dialog, String title, boolean modal)
      Constructor when the owner is a Dialog.
      Parameters:
      dialog - the owner Dialog from which the dialog is displayed or null if this dialog has no owner
      title - the String to display in the dialog's title bar
      modal - specifies with the dialog blocks user input to other top-level windows when shown. If true, the modality type property is set to JDialog.DEFAULT_MODALITY_TYPE; otherwise the dialog is modeless