You can use Unified Modeling Language (UML) class diagrams to create Java™ classes
that are not enclosed in other types (top-level classes).
To create a top-level Java class:
- In the Palette, click Class and click an
empty space inside the class diagram.
- In the New Java Class wizard, in the Source
Folder field, specify the source folder for the new class.
- In the Package field, specify the package
to contain the new class. If you want the new class to be created
in the default package, leave this field empty.
- Clear the Enclosing type check box.
- In the Name field, type a name for the new
class.
- Under Modifiers, select access modifiers
for the new class.
- In the Superclass field, specify the superclass
for the new class.
- Click Add.
- In the Implemented Interfaces Selection window,
select the interfaces for the new class to implement and click OK.
- Select method stubs to create in the new class.
- Click Finish.