Hey Fella, one week ago I learned about UML on OOP-II Class..now I try to share my knowledge about how to make class diagrams with Java also used NetBeans Apps for support this tutorial. Previously I given example that you can see here about class diagram. After you see my previous post, is it diffuclt or easy to realize that ? well, I'll lead you how accurate steps to make class diagram and if you don't mind, please follow these instructions :
- First of all, installed NetBeans on your computer/PC whatever the series but I used NetBeans 6.7 for this time
- After the main page of NetBeans appears, create new project: File > New Project
- Choose project, categories: Java , projects: Java Application and click Next
- Fill Project Name:( DependOnYou )
; Project Location: ( where the project will be saved actually on NetBeans Projects Folder ) ; click Finish
- This is the result after create JavaUML Project:
- Then, create UML project (File > New Project); Choose Project Categories: UML; Projects: Java-Platform Model; click Next
- Fill Project Name: ( DependOnYou ); Project Location: ( where the preiviously main project JavaUML folder have been stored )
; click Finish
- Choose Class Diagram and Fill Diagram Name as you want, click Finish
- Now lets make your own Class Diagram as you want. You can use all of pallete to helping you to do on the right side
- Start from package, why package ? we need package diagrams to show the general architecture of a large system. Even modest systems can be broken down into a few basic components i.e packages. You can double click to give the name of package or fill Name section on Properties
- Now, you can create class and choose how the relationship between the package. After that, you can create an attributes with right-click on class and you can decide where's field will be the primary key in every class (on properties)
- This is the result if you combine class and the relationship like my previous post
- The last steps, to see whether the class diagrams that we make is correct then, you can do Run Main Project (F6)
just share to all my friends, downloaded in here :
0 comments