File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes TreeView Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TreeView" Watch "TreeView" New topic


Prasad Khire

Joined: Jan 25, 2004
Posts: 2
Does anybody know how to develop a tree view (explorer like) control
using java? Are there any ready made and free controls available?
I want treenode names to be loaded from the database and I would like
to have event handlers to handle node click events etc..
Thanks for any help,
Prasad Khire.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

See the javax.swing.JTree class. Sun's Java Tutorial has a nice section on JTree.

[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: TreeView
It's not a secret anymore!