Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example

Checkbox in JTree

// Mathias
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic