Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

draw item

 
mark smith
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i would like to draw some entity like powerdesigner, windesign... do
like when an uml program draw class....




what is the best way in java to do that?

thanks
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the main problem is the connecting lines, try searching for pre-existing code.

there have been several threads in this forum, here's a couple of them.

http://www.coderanch.com/t/344279/Swing-AWT-SWT-JFace/java/Drawing-lines-between-JPanels-JInternalFrames#1512509

http://www.coderanch.com/t/344586/Swing-AWT-SWT-JFace/java/anybody-help#1513588
 
mark smith
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Dunn wrote:if the main problem is the connecting lines, try searching for pre-existing code.

there have been several threads in this forum, here's a couple of them.

http://www.coderanch.com/t/344279/Swing-AWT-SWT-JFace/java/Drawing-lines-between-JPanels-JInternalFrames#1512509

http://www.coderanch.com/t/344586/Swing-AWT-SWT-JFace/java/anybody-help#1513588


i would like to know the way who are the more powerfull to draw item ?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> i would like to know the way who are the more powerfull to draw item ?

not sure what you're asking here.

if it's about the information boxes - they could be JInternalFrames (if you want to drag-resize them),
or they could be JPanels.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic