Quick Example
JDK 1.1 JDK 1.2 Quick Example

Add Class

To add your first class to a diagram select Add| Class/Interface from the main menu bar.

 

Select Choice

To end up seeing the 'Add class...' dialog as shown below, you must have previously installed the JDK and you must have set 'Edit| Preferences| Environment' to include jdk files (see quick start). Now select the applet package in the left and select 'Applet.class' on the right, then click <OK>.

 

Click Position

Click the left mouse button where you would like the class to appear in the diagram.

 

Add Related

To obtain a context menu for the class Right Mouse Click on the Applet class. Then select "Add| Related classes...".

 

Filter Related

Add all related classes using the button in the lower right or check the classes you want to appear in the diagram.

 

Notice Colors

Classes are normally yellow. Interfaces are salmon colored. Final classes 'URL' and 'Locale' are green. UML does not specify any color coding, but colors are very helpful in discerning patterns in large diagrams. Set color preferences in Edit| Preferences| Diagram| Colors.

 

Edit Source

Use the context menu (right mouse click) on the 'URL' class to select Tools| Edit Source and view the source code for that class in an editor window. Even if you have a favorite editor, this is a good way to add comments or stubs for future coding. Rember that to see jdk source you mest have decompresed the source and added the source directory to your environment.

 

Source Editor

This is just a sample of menu options in the 'Source Code Editor' window.