

After giving the new project and name and clicking Create you see the new project.The name of the project does not have to be the same as the name of the java file you will later add to the project. From this window type in the name of the new project in the text field File name. Click on the Project menu and select New Project. When BlueJ is up and running you should see a window that looks something like this: To create a new program you first need to create a new project.The template is stored in the lib -> english -> templates -> newclass folder. You can also modifying the template that starts when creating new programs and classes. You can alter some of the defaults for BlueJ my modifying the file called fs with a text editor.This file is located in the lib directory in the bluej folder.Start BlueJ by either clicking on the icon you created when you downloaded and installed BlueJ or by navigating to the BlueJ directory and double clicking on the bluej.bat icon.In this example I will assume they have been downloaded to the desktop.

You don't have to put them in the BlueJ folder, just remember where you download them to on your computer. Download the java files you need from the class web site.Write Java Code to Make 2D Java Game With BlueJ.Ĭreating and Running programs in BlueJ Getting Started with BlueJ You need to have BlueJ before completing the following steps.
#Bluej program to make a game how to#
How To Write A Simple Java Program Using BlueJ. Write Java Code to Make 2D Java Game With BlueJ.
