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 />

Once the Finding Feature dialog has activated <strong>Java</strong>FX for your game project, you will get the Name and<br />

Location dialog, which is presented in Figure 2-6. Name your project InvinciBagel, and leave the default Project<br />

Location, Project Folder, <strong>Java</strong>FX Platform, and Create Application Class settings the way that NetBeans 8.0 has<br />

configured them.<br />

Figure 2-6. Name the project InvinciBagel, and leave the other settings as they are<br />

It is usually a good idea to let NetBeans 8.0 do things for you. As you can see, NetBeans creates the logical<br />

C:\Users\user\My Documents\NetBeansProjects folder in your user folder and My Documents subfolder for the<br />

Project Location data field.<br />

For your Project Folder data field, NetBeans again logically creates a subfolder named InvinciBagel, below the<br />

NetBeansProjects folder, just like you would do yourself.<br />

For the <strong>Java</strong>FX Platform drop-down menu, NetBeans 8.0 defaults to the very latest JDK 8, which is also known as<br />

JDK 1.8, and has the latest <strong>Java</strong>FX 8 (which was supposed to be <strong>Java</strong>FX 3.0).<br />

Because you are not creating multiple applications that will share libraries, leave the Use Dedicated Folder for<br />

Storing Libraries check box unchecked. Finally, select Create Application Class, which will be named InvinciBagel<br />

and will be in the invincibagel package; for the reason, the complete path and class name will be as follows:<br />

invincibagel.InvinciBagel (following the packagename.ClassName <strong>Java</strong> naming paradigm and style).<br />

(You will be learning more about packages and classes and methods in the Chapter 3, but you are ultimately<br />

going to be exposed to some of this information here, as NetBeans 8.0 will be writing some of the bootstrap <strong>Java</strong><br />

code that will provide you with the foundation for your InvinciBagel <strong>Java</strong> 8 game. I will go over some of the basic<br />

components of the <strong>Java</strong> code shown in Figure 2-7, but I am primarily going to focus on the NetBeans IDE 8.0 in this<br />

chapter and concentrate on the <strong>Java</strong> 8 programming language in Chapter 3.)<br />

26

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

Saved successfully!

Ooh no, something went wrong!