O'Reilly logo

JavaFX 1.2 Application Development Cookbook by Vladimir Vivien

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

Building a JavaFX application

The first chapter of the book introduced you to the fundamentals of the JavaFX language. Now, you are ready to start building your own JavaFX desktop application. In this recipe, we will look at the minimal requirements to build a runnable / JavaFX application.

Getting ready

In order to write your application, you will need to use an IDE or your favorite text editor. Refer to Chapter 1, Getting Started with JavaFX, to find out how to download and get started with JavaFX with the NetBeans or Eclipse IDE.

How to do it...

The listing below shows how to create a simple, yet functional JavaFX application that uses several components of the JavaFX application framework. The full listing of the code is available at ch02/source-code/src/application/SimpleApplication.fx ...

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