You can model your Java application and then generate the corresponding Java source code for your model. To generate the source code you need to create a Java project and use it to store the generated code for your UML project.
1. From the main menu, choose File > New Project and then do the following:
a. Under Categories, select General.
b. Under Projects, select Java Application.
c. Click Next.
2. In the Project Name field, type JavaPrj1.
3. For the Project Location, click Browse and select the directory UMLTutorial.
4. Clear the Set as Main Project and Create Main Class checkboxes.
5. Click Finish.
A progress dialog box appears. When your JavaPrj1 project is created, it appears in the Projects window.