New classes can be created and added to your project after you build the initial set of project files.
To begin creating a Java class, you will open the Create Java Class dialog. To open the dialog, in the Application Navigator, right-click the project and choose New .
In the New Gallery, select General in the Categories tree and Java Class in the Items list and click OK.
Then, in the Create Java Class dialog, you'll specify the class name and the package name, and select the optional attributes.
When you create a class, it is added to the active project. You can immediately begin editing the class file in the source editor.
Copyright © 1997, 2009, Oracle. All rights reserved.