0

I am working in a project in which it require to add checkbox in JTree node is there any property for it.

jzd
  • 23,473
  • 9
  • 54
  • 76
  • Take a look on this post, this is what u need: [How to add checkbox to Jtree node to manage multiselection][1] [1]: http://stackoverflow.com/questions/12870908/how-to-add-checkbox-to-jtree-node-to-manage-multiselection/12870909#12870909 – Maxim Shoustin Oct 13 '12 at 07:37

1 Answers1

2

You will have to customize implementation of TreeCellRenderer and TreeCellEditor. Check out this link it has implementation about how to add checkbox to JTree nodes.

Umesh K
  • 13,436
  • 25
  • 87
  • 129