Java Reference
In-Depth Information
sources to gain further insight into JavaFX. I highly recommend the topics: Pro
JavaFX Platform (Apress, 2009), Pro JavaFX 2.0 Platform (Apress, 2012), Pro
JavaFX 8, and JavaFX 8: Introduction by Example (Apress 2014). These topics go in
depth to help you create professional grade applications. In this chapter you will learn
the fundamentals of JavaFX to rapidly develop Rich Internet applications. It provides
you with a solid foundation for working with JavaFX.
Note For releases of JavaFX prior to JavaFX 8, the SDK was a separate download
from the standard JDK. That is, the JavaFX 1.x and 2.x SDKs had to be downloaded
and installed separately. JavaFX 8 changes that requirement, as it comes as part of JDK
8. This topic covers JavaFX 8 only, although many of the solutions may function prop-
erly on JavaFX 2.x. If you need to install JavaFX 2.x, refer to the online documentation
( http://docs.oracle.com/javafx/ ) or a book that covers JavaFX 2.x, such
as JavaFX 2.0: Introduction by Example, which was written by Carl Dea and published
by Apress. To see the online JavaFX 8 documentation, visit ht-
tp://docs.oracle.com/javase/8/javase-clienttechnolo-
gies.htm .
14-1. Creating a Simple User Interface
Problem
You want to create, code, compile, and run a simple JavaFX Hello World application.
Solution 1
Develop a JavaFX Hello World application using the JavaFX project-creation wizard in
the NetBeans IDE.
CREATING A JAVAFX HELLO WORLD APPLICATION IN
NETBEANS
To quickly get started with creating, coding, compiling, and running a simple
JavaFX Hello World application using the NetBeans IDE, follow these steps:
Search WWH ::




Custom Search