Class ErrorDialog

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

public class ErrorDialog extends JDialog implements ActionListener
An Error dialog that displays information about an error that has occurred.
Author:
James Murty
See Also:
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • showDialog

      public static void showDialog(Frame ownerFrame, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable)
      Shows the error dialog and waits for the user to acknowledge the dialog.

      If the JetS3t property gui.verboseErrorDialog is set to true, this dialog will display detailed information about the root cause of the error (the throwable, if provided)

      Parameters:
      ownerFrame - the frame that will own the dialog
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
      message - a general error message, which should ideally be somewhat user-friendly.
      throwable - the underlying exception that caused the error.
    • showDialog

      public static void showDialog(JDialog ownerDialog, HyperlinkActivatedListener hyperlinkListener, Properties applicationProperties, String message, Throwable throwable)
      Shows the error dialog and waits for the user to acknowledge the dialog.

      If the JetS3t property gui.verboseErrorDialog is set to true, this dialog will display detailed information about the root cause of the error (the throwable, if provided)

      Parameters:
      ownerDialog - the dialog that will own this dialog
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
      message - a general error message, which should ideally be somewhat user-friendly.
      throwable - the underlying exception that caused the error.
    • showDialog

      public static void showDialog(Frame ownerFrame, HyperlinkActivatedListener hyperlinkListener, String message, Throwable throwable)
      Shows the error dialog and waits for the user to acknowledge the dialog.

      If the JetS3t property gui.verboseErrorDialog is set to true, this dialog will display detailed information about the root cause of the error (the throwable, if provided)

      Parameters:
      ownerFrame - the frame that will own the dialog
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
      message - a general error message, which should ideally be somewhat user-friendly.
      throwable - the underlying exception that caused the error.
    • showDialog

      public static void showDialog(JDialog ownerDialog, HyperlinkActivatedListener hyperlinkListener, String message, Throwable throwable)
      Shows the error dialog and waits for the user to acknowledge the dialog.

      If the JetS3t property gui.verboseErrorDialog is set to true, this dialog will display detailed information about the root cause of the error (the throwable, if provided)

      Parameters:
      ownerDialog - the dialog that will own this dialog
      hyperlinkListener - the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.
      message - a general error message, which should ideally be somewhat user-friendly.
      throwable - the underlying exception that caused the error.