A quite popular, pure java UML tool V Visual Paradigm for UML. You can draw class diagrams and generate code with it.
http://www.visual-paradigm.com/vpuml.php