The moose likes Swing / AWT / SWT and the fly likes How to create horizontal treetable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to create horizontal treetable " Watch "How to create horizontal treetable " New topic
Author

How to create horizontal treetable

Piyush Tripathi
Greenhorn

Joined: Jan 28, 2009
Posts: 16
Hi,
I need to create a horizontal treetable in a java Frame.Something like below,

A
B C

with the root as A and having childrens B and C .B and C can have more childrens themselves.
Please suggest the way to do it.

Thanks in advance,
Piyush
Pierre Sugar
Ranch Hand

Joined: Dec 08, 2002
Posts: 62

look at this blog from Geertjan. It is quite easy to use.

Tree table


Pierre
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20136
    
  30

That's a vertical tree table, not horizontal.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Piyush Tripathi
Greenhorn

Joined: Jan 28, 2009
Posts: 16
Correct ,I want a horizontal tree view structure starting at top and going on to expand lower down .The vertical tree table expands sideways.Please , can anyone suggest me the way to do it.

Thanks,
Piyush
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to create horizontal treetable
 
It's not a secret anymore!