File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes UML component diagram Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "UML component diagram" Watch "UML component diagram" New topic

UML component diagram

Srinivasan Rengan
Ranch Hand

Joined: Nov 07, 2004
Posts: 122
Hi All,

I am designing my component diagram in the way Humphrey Sheil had done it. I found that way of representation very simple and effective.

But unfortunately starUML does not allow that to happen.

I am trying to indirectly make it happen by using the rectangles in starUML annotation and placing component inside. But unfortunately the rectangles don't accept dependency relation.

Any thoughts about a work around or any other tool would greatly be appreciated :-)


Caldwell Baxter

Joined: Oct 06, 2010
Posts: 13
If you can, use MS Visio 2003+.

There are UML stencils freely available for download. They work in all versions of Visio (Basic, Pro and Deluxe) <-- or whatever the actual MS names are.

In Visio Pro and up you also have the Microsoft stencils available.

I didn't find those of much use, except for the class classifier which has all three compartments, as opposed to one compartment in the downloadable stencils.

You can work around the one compartment limitation though by inserting "--------------" between the lines.
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33119

These are the Visio UML stencils, Cadwell is alluding to.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Caldwell Baxter

Joined: Oct 06, 2010
Posts: 13
Yup, and if you look closely at chapter 9 in Sheil's book, it appears that most of the diagrams were drawn in Visio and using the very downloadable stencils above.

Also, this is exactly what I used for my submission (including the "----------" trick to simulate compartments in the class classifier), and I've passed from the first try!

Free additional tip (to help with passing from the first try): I love Tomasz Romanowski! Or what he had to say, rather.
I agree. Here's the link:
subject: UML component diagram
jQuery in Action, 3rd edition