edu.northwestern.at.utils.swing
Class BuildAndShowAlert

java.lang.Object
  extended by edu.northwestern.at.utils.swing.BuildAndShowAlert

public class BuildAndShowAlert
extends java.lang.Object

Builds an later message dialog with a traceback and informative text.

This alert is used to report Java exceptions. It contains the stop icon, a title, an optional additional message supplied by the caller, optional text to display before the stack trace, and a full stack trace in a scrolling text area.


Constructor Summary
protected BuildAndShowAlert()
          Don't allow instantiation, do allow overrides.
 
Method Summary
static void buildAndShowAlert(java.lang.Throwable t, java.lang.String title, java.lang.String msg, java.lang.String extraVerbiage, java.awt.Frame parentWindow)
          Builds and shows the alert.
protected static void doBuildAndShowAlert(java.lang.Throwable t, java.lang.String title, java.lang.String msg, java.lang.String extraVerbiage, java.awt.Frame parentWindow)
          Builds and shows the alert.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildAndShowAlert

protected BuildAndShowAlert()
Don't allow instantiation, do allow overrides.

Method Detail

doBuildAndShowAlert

protected static void doBuildAndShowAlert(java.lang.Throwable t,
                                          java.lang.String title,
                                          java.lang.String msg,
                                          java.lang.String extraVerbiage,
                                          java.awt.Frame parentWindow)
Builds and shows the alert.

Must be called on the AWT event dispatching thread.

Parameters:
t - The throwable.
title - The title.
msg - The error message, or null if none.
extraVerbiage - The extra verbiage, or null if none.
parentWindow - The parent window, or null if none.

buildAndShowAlert

public static void buildAndShowAlert(java.lang.Throwable t,
                                     java.lang.String title,
                                     java.lang.String msg,
                                     java.lang.String extraVerbiage,
                                     java.awt.Frame parentWindow)
Builds and shows the alert.

Must be called on the AWT event dispatching thread.

Parameters:
t - The throwable.
title - The title.
msg - The error message, or null if none.
extraVerbiage - The extra verbiage, or null if none.
parentWindow - The parent window, or null if none.