O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

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

Creating a GUI using JavaFX controls

In this recipe, we will look at creating a simple GUI application using JavaFX controls. We will build an app that will help you compute your age by providing your date of birth. Optionally, you can even enter your name and the app will greet you and display your age. It is a pretty simple example, which tries to show how you can create a GUI by using layouts, components, and event handling.

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