This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Building tree node in swing:checkBox+image+node name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Building tree node in swing:checkBox+image+node name" Watch "Building tree node in swing:checkBox+image+node name" New topic
Author

Building tree node in swing:checkBox+image+node name

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
I want to add checkbox to my tree.
**I already have image and some name attached with each node.
But,now i also want to add checkbox with each node.
Plz tell me :
**If there is any direct tree attribute for checkboxes or how can i achieve it.
thanx
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Here is an example

Checkbox in JTree

// Mathias


SCJP1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Building tree node in swing:checkBox+image+node name
 
It's not a secret anymore!