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 I'm looking for JTree examples 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 "I Watch "I New topic
Author

I'm looking for JTree examples

Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
I'm going to write a small application which stores notes. This app will be very small and consist of a JTree which represents the category and title of the notes and a JEditorPane to show and edit the note. I plan on creating a Note class which can be inserted into a Vector and serialized. The problem I am faced with is how to go about building the JTree nodes so that I can look at each note. Is there any real world JTree examples on the net which can help me understand how to go about building and using a JTree?
Thank you,
Frank
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
Hi Frank,
u can check out the sun's tutorial for JTree along with examples given there.
here is the link
http://web2.java.sun.com/docs/books/tutorial/uiswing/components/tree.html
regards
deekasha
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
Thank you, I will read through this.
Frank
bob morkos
Ranch Hand

Joined: Sep 06, 2001
Posts: 104
Do you have an example of a tree view or any links that still work with a demo. Thanks.
Originally posted by Frank Hale:
Thank you, I will read through this.
Frank

Karen Baog
Ranch Hand

Joined: Mar 02, 2005
Posts: 120
Hi everyone!

I have a question on JTree.

Consider this snippet of code from the link provided above.



I can't figure out how you could simply show this on the frame. I want to take it one step at a time.

Anyone could help me?


amerzil co-ed student<br />"Praise be the Code"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'm looking for JTree examples
 
Similar Threads
JTree
Dynamic JTree
JTree SubTree
Binding JTree Node to JTextField
JTree question