public final class FocusOwnerFinder extends Object
Component
owning the input focus.Modifier and Type | Method and Description |
---|---|
static Component |
focusOwner()
Returns the focus owner.
|
static Component |
inEdtFocusOwner() |
@RunsInEDT @Nullable public static Component inEdtFocusOwner()
@RunsInCurrentThread @Nullable public static Component focusOwner()
Returns the focus owner.
Note: This method is accessed in the current executing thread. Such thread may or may not be the event dispatch thread (EDT). Client code must call this method from the EDT.
Copyright © 2014–2019 AssertJ. All rights reserved.