6. Anatomy of a JavaFX Application

JavaFX applications with graphical elements have a certain structure. The main program defines a Stage and a Scene that holds the graphical objects. In a simple application, you declare the graphical objects and the application just runs. Now, however, you’ll learn about an application (project Piano) that’s a bit more involved. You’ll see how object oriented design principles help describe custom objects. This application also lets you explore additional JavaFX features that help build rich applications. In this chapter, you’ll see how to use GUI components, layout components, gradients and effects, and custom graphical components. You’ll also learn how to apply timelines and transitions (animation) to control ...

Get Essential JavaFX™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.