public final class ComponentHasFocusQuery extends Object
Component has input focus. This query is executed in the event dispatch
thread (EDT).| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasFocus(Component component)
Indicates whether the given AWT or Swing
Component has input focus. |
@RunsInEDT public static boolean hasFocus(@Nonnull Component component)
Component has input focus. This query is executed in the event
dispatch thread (EDT).component - the given Component.true if the given Component has input focus, false otherwise.Component.hasFocus()Copyright © 2014–2019 AssertJ. All rights reserved.