Game Development Reference
In-Depth Information
Figure 12-10 . Change the declaration statement for the StackPane object named root from a static modifier to private
The next static variable down in the declarations at the top of the class is static
HBox buttonContainer; and I am also going to change this variable declaration
to be a private variable, using the following Java statement:
private HBox buttonContainer;
Let's make sure that the Java statements inside of the .createSplashScreenNodes()
method can still “see” or reference this buttonContainer HBox object, which as you can
see in Figure 12-11 , they can. I also clicked on the HBox object in NetBeans so that it
showed me the object references throughout my code (this is a really useful feature that
you should use to visualize how objects relate between different Java 8 programming
statements inside of your code). This selected object highlighting is shown in your
code inside of NetBeans 8 by using a yellow field highlighting color.
 
 
Search WWH ::




Custom Search