Java code generation from class diagram
Posted
by
Sanjay
on Programmers
See other posts from Programmers
or by Sanjay
Published on 2011-11-21T16:11:29Z
Indexed on
2011/11/21
18:08 UTC
Read the original article
Hit count: 489
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.
© Programmers or respective owner