Class JExceptionDialog

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

public class JExceptionDialog
extends JDialog
This class implements a JDialog for the specific purpose of showing unrecoverable errors or exceptions.
Author:
Lennart Martens
See Also:
Serialized Form
  • Constructor Details

    • JExceptionDialog

      public JExceptionDialog​(Frame aOwner, String aTitle, String[] aMessages, Throwable aThrowable)
      This constructor takes all required parameters for the construction, initialization and execution of a JExceptionDialog. Calling this constructor results ultimately in a 'System.exit(1);' call.
      Parameters:
      aOwner - Frame with the owner for this JExceptionDialog.
      aTitle - String with the title for the JExceptionDialog.
      aMessages - String[] with the messages to be displayed. One line will be given to each String element.
      aThrowable - Throwable that represents the unrecoverable error or exception.
  • Method Details

    • main

      public static void main​(String[] args)
      This main method is for testing purposes only.
      Parameters:
      args - String[] with the start-up arguments.