O'Reilly logo

Pro JavaFX 2: A Definitive Guide to Rich Clients with Java Technology by Johan Vos Ph.D., Weiqi Gao Ph.D., Dean Iverson, Stephen Chin, James L. Weaver

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Create a stage on which your program will perform: The realization of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required