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


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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.