public final class FocusOwnerFinder extends Object
Component owning the input focus.@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 AssertJ. All rights reserved.