The Artima Developer Community
Sponsored Link

Java Answers Forum
Tree like Organisation chart

3 replies on 1 page. Most recent reply: Sep 4, 2003 6:57 AM by David

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Rohit

Posts: 38
Nickname: rohit
Registered: May, 2002

Tree like Organisation chart Posted: Sep 4, 2003 4:10 AM
Reply to this message Reply
Advertisement
Hi All,

I want to create a tree,well i should say , something like organisation chart,and in that chart i should be able to drag and drop individaul node,or branch to another branch of the same tree.

Kindly suggest how to proceed with this.

Regards,
Rohit


David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: Tree like Organisation chart Posted: Sep 4, 2003 6:47 AM
Reply to this message Reply
Investigate JTree.

http://java.sun.com/j2se/1.3/docs/api/javax/swing/JTree.html

Rohit

Posts: 38
Nickname: rohit
Registered: May, 2002

Re: Tree like Organisation chart Posted: Sep 4, 2003 6:51 AM
Reply to this message Reply
Thanks for the reply.But actually what i am looking for is something more detailed,like how to use Jtree nodes to represent rectangles,support draga and drop for branches etc.

Also how to show both cascade and org chart view

David

Posts: 150
Nickname: archangel
Registered: Jul, 2003

Re: Tree like Organisation chart Posted: Sep 4, 2003 6:57 AM
Reply to this message Reply
JTree would still be your starting point. It can be used with Drag and Drop. Also, the drawing of the individual nodes may be overriden.

Flat View: This topic has 3 replies on 1 page
Topic: please help me with my applet Previous Topic   Next Topic Topic: Strange Situation

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use