I have created java entity classes inside a given package. I want to create a UML diagram for those java classes in the package. Any one know how to do it in NetBeans IDE 7? (I installed the plugin and it is working.)
In the Project tool window, right-click a package for which you want to create a diagram and select Diagrams | Show Diagram Ctrl+Alt+Shift+U ). In the list that opens, select Java Class Diagram. IntelliJ IDEA generates a UML diagram for classes and their dependencies.
You can create UML project for any of your Java project in NetBeans. Note that one Java project can associate with at most one UML project and you cannot create UML project without associating it with any Java project. Once you have created a UML project for a Java project, you cannot remove it or de-associate it.
To build a class diagram, all you have to do is launch the Smartdraw's Automatic Class Diagram extension and point it at your repository. Load your source code and choose which files you want to include in your diagram. Click "Build Diagram" and you're done.
For those using Netbeans version 8, take a look at these plugins
easyUml -> http://plugins.netbeans.org/plugin/55435/easyuml
PlantUml ->http://plugins.netbeans.org/plugin/49069/plantuml
Visual Paradigm is a software which also helps in generating UML diagrams.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With