Class ErrorDialog

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

public class ErrorDialog extends JDialog
A dialog to display a runtime exception stack trace.
Author:
Pinaki Poddar Modified from ErrorDialog.java and SwingHelper.java of the Apache OpenJPA jpa.tools.swing package.
See Also:
  • Constructor Details

    • ErrorDialog

      public ErrorDialog(Throwable t)
      Creates a modal dialog to display the given exception message.
      Parameters:
      t - the exception to display
    • ErrorDialog

      public ErrorDialog(JComponent owner, Throwable t)
      Creates a modal dialog to display the given exception message.
      Parameters:
      owner - if non-null, then the dialog is positioned (centered) w.r.t. this component
      t - the exception to display
    • ErrorDialog

      public ErrorDialog(JComponent owner, Icon icon, Throwable t)
      Creates a modal dialog to display the given exception message.
      Parameters:
      owner - if non-null, then the dialog is positioned (centered) w.r.t. this component
      icon - the icon to display
      t - the exception to display