Game Development Reference
In-Depth Information
Figure 7-15 . Click Run
Project, and open the Output pane to see errors being generated in .handle()
Clearly, NetBeans 8.0 does not always write optimal code for the bootstrap meth-
ods that it codes for us, so let's remove the throw new UnsupportedOpera-
tionException("Not implemented yet."); line of code (see Figure
7-13 ) . In its place, you will insert a Java comment, which creates for now what is
termed an empty method , shown in Figure 7-16 . This should allow your game applica-
tion to run. Although the game application window did launch with the thrown errors,
the components of the Scene Graph were not written to the scene, and only a default
white background color could be seen. You will observe this if you are following along
in NetBeans.
 
 
Search WWH ::




Custom Search