public final class EventDispatchThreadHangMonitor
extends java.awt.EventQueue
The original blog can be found here
Automatically detecting AWT event dispatch thread hangs
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchEvent(java.awt.AWTEvent event)
Overrides EventQueue.dispatchEvent to call our pre and post hooks either
side of the system's event dispatch code.
|
static EventDispatchThreadHangMonitor |
getInstance() |
long |
getTimeout() |
static void |
initMonitoring()
Sets up hang detection for the event dispatch thread.
|
void |
setTimeout(long timeout) |
public static void initMonitoring()
public static EventDispatchThreadHangMonitor getInstance()
public long getTimeout()
public void setTimeout(long timeout)
protected void dispatchEvent(java.awt.AWTEvent event)
dispatchEvent
in class java.awt.EventQueue