C H A P T E R 2
Creating a User Interface in JavaFX
Life is the art of drawing without an eraser.
—John W. Gardner
Chapter 1 gave you a jump start using JavaFX by covering the basics in developing and executing JavaFX programs. Now we cover many of the details about creating a user interface in JavaFX that were glossed over in Chapter 1. First on the agenda is to get you acquainted with the theater metaphor used by JavaFX to express user interfaces and to cover the significance of what we call a node-centric UI.
Introduction to Node-Centric UIs
Creating a user interface in JavaFX is like creating a theater play in that it typically consists of these very simple steps:
- Create a stage on which your program will perform: The realization of ...