You can use Unified Modeling Language (UML) class diagrams to add
classes and interfaces to Java™ packages.
In the Java Perspective, open a class diagram
that contains Java packages.
To add a class or interface to a Java package:
- In the diagram editor, right-click a Java package; then click or .
- Follow the instructions in the New Java Class or New
Java Interface wizard.
Tip: You can also use the package action bars or the Palette to
add classes and interfaces to Java packages.