28.04.2019 Views

[JAVA][Beginning Java 8 Games Development]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2 ■ Setting Up Your <strong>Java</strong> 8 IDE: An Introduction to NetBeans 8.0<br />

Figure 2-9 illustrates the Compile progress bar, which will appear at the bottom of the IDE during compilation.<br />

Figure 2-9. The Compile progress bar is shown at the bottom of the screen, along with expand and collapse icon<br />

functionality<br />

It is also important to note here that NetBeans will compile the project code when you use the File ➤ Save menu<br />

sequence (or the CTRL-S keyboard shortcut), so if you were to use the Save feature of the NetBeans IDE right after<br />

the bootstrap code is created, you would not have to undertake the compilation process that I just showed you, as this<br />

process is done “automagically,” (not manually) every time you save a game project.<br />

Also shown in the figure, right above the Compile progress bar, is a highlighted a block of code that was visible<br />

in Figure 2-7 but that I have collapsed, using the minus icon at the left of the code editor pane. You can see three<br />

uncollapsed minus icons in the middle of the code editor pane (under the InvinciBagel class) as well as three<br />

collapsed icons at the top of the code editor pane for the two comments and the import statement code block.<br />

A minus icon turns into a plus icon so that a collapsed code view can be expanded. Now that you have looked at how<br />

to compile your project in NetBeans as well as how to collapse and expand the views of logical blocks (components)<br />

of your project code, it is time to run the code.<br />

Running Your <strong>Java</strong> 8 Game Project in NetBeans 8.0<br />

Now that you have created and compiled your bootstrap <strong>Java</strong> 8/<strong>Java</strong>FX game project, it is time to run or execute<br />

the bootstrap code and see what it does. You can do this by using the Run ➤ Run Project menu sequence<br />

(see Figure 2-8), or you can use the shortcut icon at the top of the IDE (resembling a video transport play button),<br />

displayed in Figure 2-10.<br />

www.it-ebooks.info<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!