Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to draw a tree hierarchy in Swing

2 views
Skip to first unread message

Rongsheng Fang

unread,
Mar 27, 2002, 10:15:52 PM3/27/02
to
I have a tree data structure, and I want to represent it in Swing like
this:

http://members1.100free.com/niko/tree.jpg

Ideally, I hope every nodes to be components such that I can drag or
move them. The problem is I don't know how to draw those lines connecting
the parents and their children in the tree. Also, I have no idea which
layout manager I should use.

Any information will be appreciated.

Thanks.

Remi Bastide

unread,
Mar 28, 2002, 4:15:40 AM3/28/02
to
0 new messages