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 checkboxes in leafs of Jtrees Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "checkboxes in leafs of Jtrees" Watch "checkboxes in leafs of Jtrees" New topic

checkboxes in leafs of Jtrees

Sotirios Pappas

Joined: Oct 08, 2005
Posts: 1

although there are a lot examples regarding Jtrees with checkboxes, I cannot manage to get checkboxes in leafs.
I do not want checkboxes in the root and in the nodes, just in the leafs...

|_____Node 1
| |_______ \/ leaf1
|_____ Node 2
|________ \/ leaf 2

Can anyone help - hopefully with code...

Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I agree. Here's the link:
subject: checkboxes in leafs of Jtrees