public final boolean isFocused ()

taken from field

Indicates whether this Node currently has the input focus. To have the input focus, a node must be the Scene's focus owner, and the scene must be in a Stage that is visible and active. See requestFocus() for more information.

See also:
requestFocus()

@defaultValue false