|
|
@ -314,7 +314,7 @@ public final class EventDispatchThreadHangMonitor extends EventQueue { |
|
|
|
* 将swing中默认的EventQueue换成自己的 |
|
|
|
* 将swing中默认的EventQueue换成自己的 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void initMonitoring() { |
|
|
|
public static void initMonitoring() { |
|
|
|
Toolkit.getDefaultToolkit().getSystemEventQueue().push(INSTANCE); |
|
|
|
SwingUtilities.invokeLater(() -> Toolkit.getDefaultToolkit().getSystemEventQueue().push(INSTANCE)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|