Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 22 ■ SCoring engine: Creating the SCore Ui LayoUt and SCoring the Content

Declare the picked Node at the top of your class, as shown highlighted in Figure 22-25, to remove this error.

Figure 22-25. Remove the Node declaration from createSceneProcessing(); relocate it to the top of the class,
making it global


Figure 22-24. NetBeans error highlights picked Node in the if() statement because it is local to
createSceneProcessing()

Free download pdf