Skip to main content

FocusEvent

Java API

An event that is triggered when an element gains focus, opposite of a blur event. It occurs when the user interacts with an element, typically by clicking inside an input field or navigating to it using the keyboard's tab key, causing the element to become active and ready to receive user input.

Event Payload

MethodDescription
getText()Gets the text of the component.

See Also