开发者

How to build a mix of JTree and JTable?

开发者 https://www.devze.com 2022-12-16 04:14 出处:网络
I would like to have a JTree which also displays some extra information right adjusted, just like there was an extra column, see picture be开发者_StackOverflowlow. Any hints for accomplishing somethin

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

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


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.


You can achieve this kind of thing by using and configuring the JTreeTable from SwingX project.

0

精彩评论

暂无评论...
验证码 换一张
取 消