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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.