How can I create a class diagram with NetBeans' 6.8 UML module?

后端 未结 7 1905
旧时难觅i
旧时难觅i 2021-02-08 01:15

It seems to me the UML module of NetBeans is a bit too much hidden. In NetBeans 6.5 it was very easy to create an UML diagram. No plugin installation necessary or sth. like. Re

7条回答
  •  迷失自我
    2021-02-08 01:47

    I have NB 6.9.1. I've installed the UML plugin but it fails to make reverse engineering (create UML class diagram from existing source). I didn't want to downgrade to 6.7, so I installed ArgoUML tool. In order to generate class diagram from existing source you need to follow next steps:

    1. File->Import Sources

    2. Change the Files of Types to "All Files"

    3. Select the directory (where the *.java files are stored) or packages

    4. A small dialog window pop up -> select OK

    5. On the left hand side, you will see UntitledModel. Click on the _classes and they should occur in right in the diagram as little boxes.

    6. To show the attributes/methods, point a class (in the diagram), right click the mouse, select Show->"Show All Compartment"

提交回复
热议问题