This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 24183
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help on Jtrees
 
Similar Threads
Jtree multiple icons
Jtree handles nodeClick when adding items?
Urgent!! How to add a component to a JScrollPane?
JTree how to deselect a node
drag and drop between 2 trees