public class FormEventQueue extends EventQueue
| Modifier and Type | Field and Description |
|---|---|
static long |
dropKeyEventDefaultTime
default milliseconds to drop keyevents for FormError, etc...
|
| Constructor and Description |
|---|
FormEventQueue()
Creates an event queue.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dropKeyEvents()
Drops all key events so far up to a given time from now.
|
void |
dropKeyEvents(long millis)
Drops all key events so far up to a given time from now.
Useful for dialogs to prevent accidently ack (usually ENTER) by user. |
AWTEvent |
getNextEvent() |
createSecondaryLoop, dispatchEvent, getCurrentEvent, getMostRecentEventTime, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, pushpublic static long dropKeyEventDefaultTime
public void dropKeyEvents(long millis)
millis - the time in milliseconds to add the current system timepublic void dropKeyEvents()
dropKeyEventDefaultTimepublic AWTEvent getNextEvent() throws InterruptedException
Overridden to drop keyboard events.
getNextEvent in class EventQueueInterruptedExceptionCopyright © 2016 Krake Softwaretechnik. All rights reserved.