Ashish
Ashish

Reputation: 1567

Partial Selection in JTree using checkbox for every node

I have a application which uses a JTree. For each node in the tree, there is a checkbox attached to the node using a customized TreeCellRenderer. When some items of a node are selected i.e not all children of a node are selected using the chechboxes, how do i indicate using the checkbox of the parent node that only a partial list of nodes is selected. For this, i need to draw a little square in the checkbox indicating that it is partially selected.

Upvotes: 2

Views: 1052

Answers (1)

Related Questions