Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 11 ■ 3D SCene Configuration: uSing the perSpeCtiveCamera anD pointLight

Finally, use the Run ➤ Project work process to see whether you’ve acomplished the objective of a white
StackPane background color fill. As you can see in Figure 11-13, your UI screen again looks great, and the UI
Buttons are working.


Let’s implement this fix in the Legal and Credits Button event handling structures and bring our
application back to 100 percent working condition. As you can see in Figure 11-14, I have copied and pasted
this uiLayout StackPane object Background attribute configuration Java 9 code structure into both your
legalButton as well as your creditButton event handling infrastructures, and the code is compiling error-free.


Figure 11-13. The StackPane now has a Color.WHITE background fill, preventing scene Color.BLACK from
showing

Free download pdf