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:
  • Method Details

    • show

      public static PleaseWaitDialog show(String text)
      Create and show a dialog.

      Caller must hide and dispose the dialog when needed.

      Parameters:
      text - The text to be shown.
      Returns:
      The created dialog.
    • show

      public static void show(String text, Runnable task)
      Create and show a dialog, start the specified task and close the dialog when task is complete.
      Parameters:
      text -
      task -
    • show

      public static void show(String text, Future future)
      Create and show a dialog which closes itself when the future is done.
      Parameters:
      text -
      future -