Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

4. Components and Skinning > Creating a form with JavaFX controls

Creating a form with JavaFX controls

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.

Getting ready

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.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint