Hello all,
I could use some design suggestions.
I'd like to write a swing app that uses a tree.
Most trees are rendered like this, with every
single child showing up below the parent:

Parent
 |-Child
 |-Child
 |-Child
     |-Grandchild
     |-Grandchild

I'd like to render my nodes differently, like this:

        |--child
        |
Parent -+--child
        |
        |
        |         |-grandchild
        |--child -+
                  |-grandchild



(In case the gods of email spacing/formatting
are not with me today, I've included a verbal
description at the end of this email.)

I can see how the TreeModel will come in handy.
Also, I know how I can specify my own CellRenderer to
customize individual nodes.  I could use some help,
though, on customizing the layout.  I'd like to use as
much of the JTree as I can.

Thanks in advance for any help,

--Erik Ostermueller

Verbal description, if the above picture gets trashed:
Most trees grow downward.  ie, the tree renders
every single child below the parent.  I'd like to
create a tree that renders this way:
As each child is rendered, the list of children
is re-centered around the parent.  ie, with four
children, two are above the parent and two below.
With six children, 3 above, 3 below.
All children are rendered a full column width to
the right of the parent.

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to