TreeTables In Swing

I am looking for an example showing how to browse a local file system.
One way to do this is with a tree table.

I see this:
but it appears to be somewhat dated.

Is there a more contemporary example?
Who is Participating?
armoghanConnect With a Mentor Commented:
The applet can be converted to an Application as teh source code is available.
Its not a Commerical application , its a commerical component. of treeTable. If you can buy.
The third thing is what you alerady pointed out. I have used it as well once I was evaluating TreeTable.. It work fine as well and is not outdated.
Not sure what you are trying to acheive by browsing a file system. If it is to select a file(s), how about using the JFileChooser class. Makes everything very easy.

    JFileChooser chooser = new JFileChooser();
    // Note: source for ExampleFileFilter can be found in FileChooserDemo,
    // under the demo/jfc directory in the Java 2 SDK, Standard Edition.
    ExampleFileFilter filter = new ExampleFileFilter();
    filter.setDescription("JPG & GIF Images");
    int returnVal = chooser.showOpenDialog(parent);
    if(returnVal == JFileChooser.APPROVE_OPTION) {
       System.out.println("You chose to open this file: " +

Hope this helps
allelopathAuthor Commented:
Nope, not JFileChooser, I've already looked at that, and its not what i need.
I'm making an application in which a source file(s) is selected in the left window and the destination directory is on the right.
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

If you need a Tree table this is an example

if you need a commercial treeTable, see this Hierarchical Table of JideSoft
the Above link you mentioned is also workable
allelopathAuthor Commented:
The javaboutique example is an applet, as I said I'm making an application.
>>The javaboutique example is an applet, as I said I'm making an application.
The source code is attached in the link, you can extract it JTable code from it.
It will be similarly used in an Application ..

You can aslo see the other examples I have placed as links
allelopathAuthor Commented:
My question has not been answered
armogham suggested 3 sites.
The first is an applet, not an application as i requested.
The second is a commerical application, not an example
The third i had already pointed out.
There is this Outline class:

It does successfully do a Tree Table, however, I am having some problems with it.  First of all, it does not respond to my updateUI() calls to  update the tree itself.  The tree is completely hidden.  I currently need to fix both the updating and figure out how to expand all rows.  I have been able to do it with JTree, but using expandRow(int) and only expandPath(TreePath) exists in Outline, which I haven't managed to use yet.

So the summary, Outline works, but has limitations and even what I'd call bugs.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.