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 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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Can i add object to tree?" Watch "Can i add object to tree?" New topic

Can i add object to tree?

Nitin Kumar Goyal

Joined: Mar 20, 2009
Posts: 5
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]

I agree. Here's the link:
subject: Can i add object to tree?
It's not a secret anymore!