This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Can i add object to tree? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can i add object to tree?" Watch "Can i add object to tree?" New topic
Author

Can i add object to tree?

Nitin Kumar Goyal
Greenhorn

Joined: Mar 20, 2009
Posts: 5
Hi,
I would like to add some custom defined object as a tree item(to perform cut, copy , paste). But tree item has only method setText. Is there any other way to do?

Please see attached snapshot.

I am using SWT Tree, TreeItem object.


[Thumbnail for treeview.JPG]

 
jQuery in Action, 2nd edition
 
subject: Can i add object to tree?
 
Similar Threads
Binary search tree questions...
How do I know which object is selected?
Passed SCJP = 68%
Java Tree Help
errror cannot find symbol