Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Similar Threads
Help on Jtrees
Urgent!! How to add a component to a JScrollPane?
Can I add a checkbox in front of a tree node?
drag and drop between 2 trees
JTree not desplaying and check boxes