abbot.util
Class EventExceptionHandler

java.lang.Object
abbot.util.EventExceptionHandler
- public class EventExceptionHandler
- extends java.lang.Object
Handler for uncaught exceptions on any event dispatch thread.
Once this has been installed, it must be accessible by any subsequently
launched dispatch thread.
This handler is installed by setting the property
sun.awt.exception.handler.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventExceptionHandler
public EventExceptionHandler()
installOnCurrent
public static void installOnCurrent()
- Install a handler for event dispatch exceptions. This is kind
of a hack, but it's Sun's hack.
See the javadoc for java.awt.EventDispatchThread for details.
NOTE: we throw an exception immediately, which
ensures that our handler is installed, since otherwise
someone might set this property later.
java.awt.EventDispatchThread doesn't actually load the handler
specified by the property until an exception is caught by the
event dispatch thread. SwingSet2 in 1.4.1 installs its own.
While it may alter program behavior to prevent its handler from
being installed, it is highly unlikely that anyone actually
depeds on the handler's behavior.
handle
public void handle(java.lang.Throwable thr)
- Handle exceptions thrown on the event dispatch thread.