Class PleaseWaitDialog

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

public class PleaseWaitDialog extends JDialog
A simple "Please wait..." (or any other text) modal dialog.
See Also:
  • Constructor Details

    • PleaseWaitDialog

      public PleaseWaitDialog(String text)
      Creates the dialog with the specified text, and a null task.
      Parameters:
      text - The text to be shown.
    • PleaseWaitDialog

      public PleaseWaitDialog(String text, Runnable task)
      When made visible, text is displayed while running the task.

      When dialog is made visible, the task is started, and when task is complete dialog is hidden then disposed.

      Parameters:
      text -
      task - If null, nothing is done when dialog is made visible, caller is responsible to dismiss the hide dialog.