Handling JavaFX Events
About This Tutorial
In JavaFX applications, events are notifications that something has happened. As a user clicks a button, presses a key, moves a mouse, or performs other actions, events are dispatched. Registered event filters and event handlers within the application receive the event and provide a response. This tutorial describes how events are processed and provides examples of handling events.
This tutorial contains the following topics:
Describes the underlying architecture of how events are processed within JavaFX applications.
Explains the simplest way to provide event handlers to handle the events generated as users interact with your application.
Provides a sample of how event filters can be used to handle events.
Provides a sample of how event handlers can be used to handle events.
Describes the events generated for user gestures on touch-enabled devices and provides a sample that logs the events from gestures.
Describes the events and touch points that are generated when a user touches a touch screen and provides a sample that shows how touch events can be used in a JavaFX application.
Expand the Table of Contents in the sidebar for a more detailed list of topics.