This JavaFX tutorial will cover how to handle user actions in JavaFX applications. This JavaFX example application will go over one of the most common use cases for this - handling a button click event.
In JavaFX button click events are captured through the OnAction callback.
We will look at how to handle button click events through
1) The OnAction hookup in the FXML to the Controller
2) registering for the Onaction event in the controller only
3) how to write a handle method to do things upon click
The blog version of this Javafx GUI tutorial can be found here:
https://noblecodemonkeys.com/?p=5656