Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

abbot.util
Class EventExceptionHandler  view EventExceptionHandler download EventExceptionHandler.java

java.lang.Object
  extended byabbot.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.


Nested Class Summary
private static class EventExceptionHandler.DummyException
           
 
Constructor Summary
EventExceptionHandler()
           
 
Method Summary
 void handle(java.lang.Throwable thr)
          Handle exceptions thrown on the event dispatch thread.
static void installOnCurrent()
          Install a handler for event dispatch exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventExceptionHandler

public EventExceptionHandler()
Method Detail

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.