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

Help on Jtrees

Mirina PC
Greenhorn

Joined: Oct 02, 2004
Posts: 1
Hi i need help with JTrees.. I have deitel's Java how to program 4th ed, but it does not hyave any discussion on JTrees.. Please help.. The specs of the tree i have to create are it has to be a three-level tree, the third level consists only of leaf nodes, the second level consists only of folders, the first level consists only of the root node.. how do i code this?? thanks
[ October 02, 2004: Message edited by: Mirina PC ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Hi Mirina,

Welcome to JavaRanch!

First, a little business: we have a naming policy here at the Ranch; it says that your display name has to be a real first and last name. You can change yours here. Thanks!

Now, as to your question: Sun's Java tutorial has tons of information about trees; see here. Reading that page and trying the demos would be a good start.

Finally, we've got a whole forum dedicated to Swing and its cousins; the folks there will be able to help you with your JTree questions. So I'll move this thread there.
[ October 02, 2004: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
 
 
subject: Help on Jtrees