isInFocus

public boolean isInFocus()(source)

Test if this element is focused, or has a focused child.

Return

true if this or a child of this element is focused in the current gui context