In the previous recipes, we have seen how to integrate creative content from tools, such as Adobe Photoshop and Illustrator, into JavaFX projects using the Production Suite tools. In this recipe, we are going to see how to load graphics nodes from a FXZ file. You will learn how to use NetBeans to generate JavaFX UI stub classes that provide programmatic access to the objects inside the FXZ files.
Prior to continuing with the materials in this recipe, you must be familiar with the topic of generating FXZ files covered in the recipes Exporting Adobe Photoshop graphics to JavaFX, Exporting Adobe Illustrator graphics to JavaFX, and Exporting Scalable Vector Graphics (SVG) to JavaFX. You will need an FXZ file generated using the methods discussed in these recipes.
Another requirement for this recipe is the use of the NetBeans IDE. The techniques covered here use features available in that IDE. If you are not a NetBeans user, see the There's more...