Re: Binary tree
From: Thomas Weidenfeller (nobody_at_ericsson.invalid)
Date: 02/22/05
- Next message: Thomas Weidenfeller: "Re: Help with actionPerformed"
- Previous message: tem2: "Re: Help with actionPerformed"
- In reply to: Laurent Guichard: "Binary tree"
- Next in thread: Tjerk Wolterink: "Re: Binary tree"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 22 Feb 2005 12:28:28 +0100
Laurent Guichard wrote:
> Hello,
> I'd like to display a binary tree (each node has two children). I try to use
> the JTree class but the problem is that the children of a node are always
> below this node... which is not the normal representation of a binary tree
> (one child above and one child below).
> Would you have any ideas ?
The FAQ has a very vague description about how to draw trees (because it
is common homework). You can find sufficient details and algorithms in
basically any introductionary textbook to computer graphics or
algorithms and data structures.
/Thomas
-- The comp.lang.java.gui FAQ: ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
- Next message: Thomas Weidenfeller: "Re: Help with actionPerformed"
- Previous message: tem2: "Re: Help with actionPerformed"
- In reply to: Laurent Guichard: "Binary tree"
- Next in thread: Tjerk Wolterink: "Re: Binary tree"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|