July 2015
Beginner
280 pages
6h 40m
English

The program shown at the end of the previous chapter presented a simple example that constructed a scene graph and introduced the Label control. However, it did not show one important feature found in most JavaFX programs: event handling. In JavaFX, an event is an object that describes some action that has affected the program, such as when the user interacts with the program by clicking a button. Because Label does not take input from the user, it does not generate events, so no event handling was needed to use it. However, other JavaFX controls do generate events in response to user input. For example, ...
Read now
Unlock full access