I'm not sure if this is what you are looking for, but there are two tutorials from Sun on creating tree tables, which is essentially a JTable with a JTree renderer in the first column. Links: Part 1 Part 2
EDIT:
On the topic TreeTable (a table component that supports a tree in its first column, which allows you to hide and display rows based on custom tree modifications), I found a NetBeans implementation called Outline . It is very easy to use. A simple example took less than 30 minutes to mock. Code can be found in this answer .
Here is a picture of a TreeTable:
alt text http://img17.imageshack.us/img17/6643/picture1hz.png
source share