FileTree in OS X

FileTree

Overview

I code a lot of gui code (Swing) in Java, and I end up spending a lot of time trying to make things look good across different platforms. With FileTree, I wanted a view of the file system similar to that provided by OS X's Finder in list view, or the left hand column of Windows Explorer.

Features

FileTree extends JTree so you get all the Swing event code in addition to the file system browsing capabilities that I've added. It displays native system icons to the left of each filename and even handles Windows' multiple disks. Others features include:

Dowload and License

You can skim the Javadocs (html | tar.gz) to get an idea of the available functionality, or just download the jar file (JDK 1.5 or higher) to play around with it. The source code is available under the LGPLv3 license.

Example

If you want to see how FileTree looks on your computer, download the jar file and run it with:

java -jar FileTree.jar

Last updated: Wednesday, 2008 October 1, 10:48 PST