Home

 

Creating Java packages

After the Java project has been created, Java packages can be added to the project using the New Java Package wizard. Here are the options to launch the New Java package wizard from the Visualizer Class Diagram editor:

Select in the Java Drawer, as shown in Figure | -14, and click anywhere in the class diagram editor.

Right-click the src folder in the Java project and select New Æ Package or New Æ Other Æ Java Æ Package, or click in the toolbar.

Note: To add a package to the class diagram, just drag and drop the package to the class diagram editor, or right-click the package in the Package Explorer and select Visualize Æ Add to Current Diagram.

ibm.com/redbooks