permaculture playing cards*
The moose likes Swing / AWT / SWT and the fly likes draw item Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "draw item " Watch "draw item " New topic
Author

draw item

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 246
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

Joined: Jun 09, 2003
Posts: 4632
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

Joined: Apr 05, 2005
Posts: 246
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

Joined: Jun 09, 2003
Posts: 4632
> 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.
 
wood burning stoves
 
subject: draw item
 
Similar Threads
JList transparent? Possibility to draw
AWT Rectangle(URGENT)
Possible or Not
Who will win World Cup Football 2006?
Using a treeview in IE and Netscape without plug-ins