Retrieves a boolean value indicating whether the control has the focus.
public boolean getFocused()
Returns true if this control has the focus; otherwise, returns false.
See Also focus