Example usage for java.awt EventQueue subclass-usage

List of usage examples for java.awt EventQueue subclass-usage

Introduction

In this page you can find the example usage for java.awt EventQueue subclass-usage.

Usage

From source file EventDispatchThreadHangMonitor.java

/**
 * Monitors the AWT event dispatch thread for events that take longer than
 * a certain time to be dispatched.
 * <p/>
 * The principle is to record the time at which we start processing an event,
 * and have another thread check frequently to see if we're still processing.