uk.ac.starlink.util
Class ErrorDialog
java.lang.Object
|
+--uk.ac.starlink.util.ErrorDialog
- public class ErrorDialog
- extends Object
Utility class for displaying an error dialog to the user.
Note
I put this class the UTIL package since a component of this sort has
obvious general use. However, it is not especially beautifully
laid out - by all means feel free to improve it -- Mark
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorDialog
public ErrorDialog()
showError
public static void showError(Throwable th,
String message,
Component parent)
- Pops up a modal dialog to the user displaying a Throwable
object. As well as a short message, the throwable's stack trace
is displayed in a scrollable window. The user has to click on
a button or something to dismiss it.
- Parameters:
th
- the Throwable object to displaymessage
- a short text message to display in the dialog
(may be null)parent
- a parent window, used for positioning the dialog
(may be null)