I’m trying to organize filter chain of EventQueue.dispatchEvent. Something like java.io.FilterInputStream or javax.servlet.Filter.
Found EventQueueDelegate.Delegate to be intended for this?.. But in case of exception in EventQueue.dispatchEvent EventQueueDelegate.Delegate it knows nothing about this and ugly java.awt.EventDispatchThread.handleException appears on the scene.
- Is this ‘temporary hack’ not yet solved since Java SE 1.1???!!!
I’ve also looked toward EventQueue.dispatchEvent to call in chain. But it appeared not suitable for this due to this method is protected and it require additional dancing with tambourines to make things work and code becomes not so lovely.
- Any better solution?
Next is dancing with tambourines around EventQueueDelegate.Delegate…
AwtExceptionHandler.java
FilterEventQueueDelegate.java
AwtResponsivenessMonitor.java
AwtIdleTracker.java
Example.java