Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build a mix of JTree and JTable?

Tags:

java

swing

I would like to have a JTree which also displays some extra information right adjusted, just like there was an extra column, see picture below. Any hints for accomplishing something like this or similar are welcome!

alt text http://img3.imageshack.us/img3/3671/exampleif.jpg

like image 534
Ed Taylor Avatar asked Jan 22 '23 18:01

Ed Taylor


1 Answers

There are some articles at Sun about producing TreeTables in Java.

I remember developing a TreeTable using the sample code as a great starting point, but these articles are 10 years old now so you may want to approach with a little caution.

If you'd like something newer there is the NetBeans Outline Component.

like image 153
Dave Webb Avatar answered Jan 25 '23 06:01

Dave Webb