dcsimg
Double click on a node in JTree
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Benny_keinan
Posted On:   Thursday, June 13, 2002 03:30 AM

Hi,

I have a JTree that is used for navigation. When I double click on a node it supposed to open the node in a seperate window. I have managed to do that, but when I double click on the node, the node is being expand and collapse or the other way arround.

I want to prevent the collapse/expand behaviour for double click. How can I do it?


Thanks

Benny

Re: Double click on a node in JTree

Posted By:   Samir_Randive  
Posted On:   Thursday, June 13, 2002 03:46 PM

JTree has a variable toggleClickCount which decides the number of mouse clicks to expand/collpase the nodes. The default value is 2. You can change it by using the setToggleClickCount method of JTree.


Hope this helps.




cheers..


Samir
About | Sitemap | Contact