Headache causing Question about selecting only one tree at a time
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, January 17, 2002 07:43 AM

Hi , guys
does anybody know how to make only one tree selected in an application which shows three trees simultaniously.

Untill now I can select both trees at a time (the third one is not implemented yet )

This is probably so because the trees are showed in different panels I have no idea....

Please give me some hints or ideas.



I thank you in advance..

By adding treeSelectionListener u can overcome ur problem

Posted By:   Anonymous  
Posted On:   Thursday, January 17, 2002 08:22 PM

Hello
implementin TreeSelectionListener
in side its method
public void valueChanged(TreeSelectionEvent tse){
if(!(tree1.isSelectionEmpty()))
tree1.clearSelection();
if(!(tree2.isSelectionEmpty()))
tree2.clearSelection();
}
for forther info if ur not clear contact
sprajesh@vdc.equadriga.com
About | Sitemap | Contact