O'Reilly logo

Essential JavaFX™ by Paul Anderson, Gail Anderson

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

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 ...

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