Modifier and Type | Method and Description |
---|---|
static Component |
focusOwner()
Returns the focus owner.
|
static Component |
inEdtFocusOwner()
Returns the focus owner.
|
@RunsInEDT public static Component inEdtFocusOwner()
@RunsInCurrentThread public static Component focusOwner()
Note: This method is not guaranteed to be executed in the event dispatch thread (EDT.) Clients are responsible for calling this method from the EDT.
Copyright © 2007-2013 FEST (Fixtures for Easy Software Testing). All Rights Reserved.