Java code generation from class diagram
- by Sanjay
I'm on the way developing a Java application where user can provide a class diagram and get the corresponding Java code.
I don't know how can I let the user interactively draw a class diagram in Java. I am currently getting the required parameters like attributes, functions directly from the user, and then I render a class diagram for him. I show the class diagram on a jdialog. Is there a better way to do this?
This is an example of a class diagram, I need to generate this from a Java program, given the values and relationship.