Hi, this is the first article of my new article series on creating JavaFx game with Netbeans 8.1. In this article I am going to show you how to set up and launch the new JavaFx project in NetBeans 8.1. My new gaming project Mechanikal Reptile will use NetBeans to create and therefore if you have not yet installed NetBeans you can do so by visiting NetBeans homepage and download the IDE now. Also I am using Java 8 in this project so make sure you have the latest copy of the JDK installed in your computer.
Once you have installed NetBeans you can launch it and start a new project. Go to File->New Project, then select JavaFx and JavaFx Application on the right pane and click Next. Fill out the detail as follow, I have named my new game project Mechanikal Reptile and I have also created a main folder for all my Java project. Leave other settings as default and click on Finish.
OK, now we are ready to launch our first JavaFx project, select Run->Compile File to compile your Java code first then look at the output pane, if your code has no error then you will see the ‘BUILD SUCCESSFUL’ message which means we can now run the JavaFx program.
Now click on the green arrow button on the main menu header to run the project.