The previous chapters demonstrated the power of the JavaFX platform in creating engaging UI experiences with features such as animation, effects, and so on. Data capture is an equally important aspect for a great user experience. In this recipe, you will learn how to assemble standard JavaFX GUI controls to build a form to collect data.
This recipe attempts to use as many standard JavaFX controls as possible to create a form to collect data from the user. All of the controls used here are found in the package javafx.scene.control
.
What is a Control anyway, you may ask? Controls provide a uniform graphical and interaction model with consistent and predictable behaviors. For instance, a button, a text input field, and a label, are all examples of standard controls available in JavaFX. All controls implement the Control
class as the basis for all user interface controls that are part of the JavaFX application framework.