Chapter 9Using Events

Key Skills & Concepts

• Reacting to mouse events

• Using anonymous functions

• Trapping key events

This chapter introduces you to JavaFX events. The concepts that are required when working with events are key in producing rich, interactive applications. Events allow your application to respond to the actions of the user.

What Are Events?

An Events provide a way to interact with your users in JavaFX. As a developer, you can use many types of events to enable your users to interact with and react to your environment. Events can be fired as a result of the user interacting in some way with your environment, and you can capture or trap these events and write actions around the information you have gathered.

In this chapter you ...

Get JavaFX A Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.