@Exported public class EventQueueMonitor extends Object implements AWTEventListener
EventQueueMonitor class provides key core functionality for Assistive
 Technologies (and other system-level technologies that need some of the same
 things that Assistive Technology needs).AWTEventMonitor, 
SwingEventMonitor| Constructor and Description | 
|---|
| EventQueueMonitor()Create a new  EventQueueMonitorinstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addGUIInitializedListener(GUIInitializedListener l)Adds the specified listener to be notified when the GUI subsystem
 is initialized. | 
| static void | addTopLevelWindowListener(TopLevelWindowListener l)Adds the specified listener to be notified when a top level window
 is created or destroyed. | 
| void | eventDispatched(AWTEvent theEvent)Handle events as a result of registering a listener
 on the  EventQueueinmaybeInitialize(). | 
| static Accessible | getAccessibleAt(Point p)Obtain the  Accessibleobject at the given point on the Screen. | 
| static Point | getCurrentMousePosition()Return the last recorded position of the mouse in screen coordinates. | 
| static Window[] | getTopLevelWindows()Return the list of top level Windows in use in the Java Virtual Machine. | 
| static Window | getTopLevelWindowWithFocus()Return the top level  Windowthat currently has keyboard focus. | 
| static boolean | isGUIInitialized()Says whether the GUI subsystem has been initialized or not. | 
| static void | maybeInitialize()Tell the  EventQueueMonitorto start listening for events. | 
| static void | removeGUIInitializedListener(GUIInitializedListener l)Removes the specified listener to be notified when the GUI subsystem
 is initialized. | 
| static void | removeTopLevelWindowListener(TopLevelWindowListener l)Removes the specified listener to be notified when a top level window
 is created or destroyed. | 
public EventQueueMonitor()
EventQueueMonitor instance.  Normally, this will
 be called only by the AWT Toolkit during initialization time.
 Assistive technologies should not create instances of
 EventQueueMonitor by themselves.  Instead, they should either
 refer to it directly via the static methods in this class, e.g.,
 getCurrentMousePosition() or obtain the instance by asking the
 Toolkit, e.g., Toolkit.getSystemEventQueue().public static void maybeInitialize()
EventQueueMonitor to start listening for events.public void eventDispatched(AWTEvent theEvent)
EventQueue in maybeInitialize().eventDispatched in interface AWTEventListenerpublic static Accessible getAccessibleAt(Point p)
Accessible object at the given point on the Screen.
 The return value may be null if an Accessible object cannot be
 found at the particular point.p - the point to be accessedAccessible at the specified pointpublic static boolean isGUIInitialized()
GUIInitializedListener
 and wait to create GUI component instances until the listener is
 called.addGUIInitializedListener(com.sun.java.accessibility.util.GUIInitializedListener)public static void addGUIInitializedListener(GUIInitializedListener l)
isGUIInitialized() before calling this method.l - the listener to addisGUIInitialized(), 
removeTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)public static void removeGUIInitializedListener(GUIInitializedListener l)
l - the listener to removeaddGUIInitializedListener(com.sun.java.accessibility.util.GUIInitializedListener)public static void addTopLevelWindowListener(TopLevelWindowListener l)
l - the listener to addremoveTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)public static void removeTopLevelWindowListener(TopLevelWindowListener l)
l - the listener to removeaddTopLevelWindowListener(com.sun.java.accessibility.util.TopLevelWindowListener)public static Point getCurrentMousePosition()
public static Window[] getTopLevelWindows()
Windows in use in the Java Virtual Machinepublic static Window getTopLevelWindowWithFocus()
Window that currently has keyboard focus.Window that currently has keyboard focus
 Copyright © 2002, 2017, Oracle and/or its affiliates.  All rights reserved.