Setting Up the Project
To create an IDE project:
-
Start NetBeans IDE.
-
In the IDE, choose File > New Project, as shown in the figure below.
-
In the New Project wizard, expand the General category and select Java
Application as shown in the following figure:
-
In the Name and Location page of the wizard, do the following (as shown in
the figure below):
-
In the Project Name field, type
Hello World App.
-
In the Create Main Class field, type
helloworldapp.HelloWorldApp.
-
Leave the Set as Main Project checkbox selected.
-
Click Finish.
The project is created and opened in the IDE. You should see the following
components:
-
The Projects window, which contains a tree view of the components of the
project, including source files, libraries that your code depends on, and so
on.
-
The Source Editor window with a file called
HelloWorldApp open.
-
The Navigator window, which you can use to quickly navigate between elements
within the selected class.
|