Register / Login
Swing / AWT / SWT
Restrictive Multiple Selections in JTree
posted 11 years ago
I'm kind of simulating Explorer behavior using
; 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:
Then multiple selections
be: child1, child2
or selection : parent
a multiple selection like: Parent, child1 is useless for me
Infact I have made some progress: I dont let users select child1 and then Parent.
But I cant prevent a user first selecting Parent and then child1 ?
Any ideas in this front.. Have guys faced similar situations... any workarounds apart from restricting selections to Single Selection?
JTree DnD multiple node selections?
URGENT :- Creating JTree
JTree Selection Customization