Paul,

Check out java.awt.EventDispatchThread.handleException().

Neil

At 10:01 AM 2/10/2003 +0000, you wrote:
From: "Paul Kavanagh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Exception handling
Date: Fri, 7 Feb 2003 16:01:01 -0800

Hi all,

I'd like to catch all runtime exceptions that are thrown in my Swing app in order to fail
gracefully (ie I don't want any NullPointerExceptions, ArrayIndexOutOfBoundsExceptions etc going
uncaught) by popping a "Program Error" dialog or something like that. I can add a try/catch block
in my main, but that's not going to catch any exceptions that occur in the Gui threads. Has anyone
tried this before ? What is the best approach ?

Thanks in advance,
-Paul
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to