If an event handler throws an exception which it does not itself catch, there is a crash in the current EventQueue DispatchThread.
Handles an exception thrown in the event-dispatch thread.
If the system property "sun.awt.exception.handler" is defined, then when this method is invoked it will attempt to do the following:
- Load the class named by the value of that property, using the current thread's context class loader,
- Instantiate that class using its zero-argument constructor,
- Find the resulting handler object's public void handle
method, which should take a single argument of type
- Invoke the handler's handle method, passing it the thrown argument that was passed to this method.