4. A Simple JavaFX Application

Now that you have been introduced to the basics of JavaFX Script and seen how to compile and run some code, it’s time to look at a slightly less-trivial example. The SnowStorm application that we build in this chapter displays an image of a snow-covered building and animates a number of snowflakes falling in front of it to create the impression of a chilly winter scene, as shown in Figure 4-1.

Figure 4-1 The SnowStorm application

image

In the second part of this chapter, you see how to use the NetBeans IDE to debug and profile this application.

Building the SnowStorm Application

You can find the source code for the SnowStorm ...

Get JavaFX™ Developer’s Guide 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.