public class WindowMonitor extends Object
Windows (showing, hidden, closed).
|Modifier and Type||Method and Description|
Returns the event queue corresponding to the given AWT or Swing
Returns whether the AWT or Swing
Return all available root
Windowis ready to receive OS-level event input. A
Window's "isShowing" flag may be set
WINDOW_OPENEDevent is generated, and even after the
WINDOW_OPENEDevent is sent, the
Windowpeer is not guaranteed to be ready.
w- the given
Windowis ready to receive OS-level event input.
@Nullable public EventQueue eventQueueFor(@Nonnull Component c)
Compoenent. In most cases, this is the same as
Component.getToolkit().getSystemEventQueue(), but in the case of applets will bypass the
AppContextand provide the real event queue.
c- the given
@Nonnull public Collection<EventQueue> allEventQueues()
@Nonnull public Collection<Window> rootWindows()
Windows. A root
Windowis one that has a
nullparent. Nominally this means a list similar to that returned by
Frame.getFrames(), but in the case of an
Appletmay return a few dialogs as well.
Copyright © 2014–2017 AssertJ. All rights reserved.