Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 9 ■ JavaFX 9 User InterFaCe DesIgn: the Front enD For Java 9 game DesIgn

I configured the VBox to space its children out by 10 pixels, placing a value of 10 in the VBox(10)
constructor method call. I increased the Insets() spacing value to Insets(16). Run the project to view the
changes, shown in Figure 9-10.


Next, copy the backplate8.png and alphalogo.png image assets to the source folder, as shown in
Figure 9-11.


Figure 9-10. Use the Run ➤ Project work processing to see your Button bank design improvements in spacing
and width


Figure 9-11. Use your file management utility to copy the backplate8.png and alphalogo.png assets to your /
src folder

Free download pdf