Class ErrorDialog

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

public abstract class ErrorDialog extends JDialog
Dialog window which displays an error message, possibly with some verbose details optionally visible.
Since:
5 Sep 2008
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ErrorDialog

      protected ErrorDialog(Frame owner, String title, String summary)
      Constructor.
      Parameters:
      owner - parent frame
      title - dialog title
      summary - short text string describing what's up
  • Method Details

    • getDetailText

      protected abstract String getDetailText()
      Supplies the text to be displayed in the detail panel.
      Returns:
      detail text
    • showError

      public static void showError(Component parent, String title, String summary, Throwable error)
      Pops up a window which shows the content of a exception.
      Parameters:
      parent - parent component
      title - window title
      summary - short text string
      error - throwable