Class DialogWindow

java.lang.Object
bibliothek.gui.dock.common.action.panel.AbstractPanelPopupWindow
bibliothek.gui.dock.common.action.panel.DialogWindow
All Implemented Interfaces:
PanelPopupWindow

public class DialogWindow extends AbstractPanelPopupWindow
Author:
Benjamin Sigg
  • Constructor Details

    • DialogWindow

      public DialogWindow(Component owner, CPanelPopup panel)
      Creates a new window.
      Parameters:
      owner - the parent of the dialog
      panel - the owner of the dialog
  • Method Details

    • setUndecorated

      public void setUndecorated(boolean undecorated)
      Sets whether the dialog has a decoration or not.
      Parameters:
      undecorated - whether to decorate or not
      See Also:
    • setContent

      public void setContent(Component content)
      Sets the contents of the dialog.
      Parameters:
      content - the contents, may be null
    • open

      public void open(int x, int y)
      Shows the dialog at the given screen location.
      Parameters:
      x - the dialogs location
      y - the dialogs location
    • open

      public void open(Component relativeTo)
      Opens the dialog relative to relativeTo.
      Parameters:
      relativeTo - some component
    • isOpen

      public boolean isOpen()
      Description copied from interface: PanelPopupWindow
      Tells whether this window is visible or not.
      Returns:
      true if visible
    • close

      public void close()
      Description copied from interface: PanelPopupWindow
      Makes this window invisible
    • createDialog

      protected JDialog createDialog(Component owner)
      Creates a new dialog with the ancestor window of owner as owner.
      Parameters:
      owner - some component
      Returns:
      the new dialog