Multiple Select « JTree « Java Swing Q&A





2. multiple node selection in jtree    coderanch.com

you could start the tree with multiple selection and change to single selection as soon as the user selects a node, the first time. I think, this is the easiest solution. I am doing that in a table to mark search events - each time a search produces hits, I select all the matching rows (after changing to multiple selection), and ...

4. Restrictive Multiple Selections in JTree    coderanch.com

Hi Ranchers, I'm kind of simulating Explorer behavior using JTree; I allow Multiple Selections(discontigous) in my tree. So far so good... But i want my slections to be restrictive: for e.g if my tree is: Parent | |__ child1 | |__ child2 Then multiple selections should be: child1, child2 or selection : parent a multiple selection like: Parent, child1 is useless ...

5. Custom Multiple Selection for JTree    coderanch.com

Hi, I need to implement specific multiple selection behavior. The multiple selection should be worked for the nodes of one level. As an illustration, if I have two expanded nodes with some amount of children in my view and one of the parents is already selected then multiple selection action should select only second one parent, children should be ignored. Any ...

7. selection of multiple nodes in JTree    forums.oracle.com

Hi All, I want to search and select the node with the same name and treepath and at same depth like tree |_selectit |_ selectit |_nextselect So how can I do this with getNextMatch as every time it'll return the same treepath so setSelectionPath(path) will select the first one. Hey All Plzzzzz help me for this Regards, Anoop