Double Click on TreeNode
I am having trouble in implementing a double click on a TreeNode. Since TreeNode
is not an awt component, therefore it cannot generate mouse events. the next
best option is to add the mouse listener to the JTree. But that is useless
as the particular TreeNode doesn't get "heard" by the mouse listener. I've
tried identifying the TreeNode with a selection listener first and then detecting
the mouse clicks. But that is not stopping a user from first clicking the
TreeNode and then anywhere in the JTree giving the same result!!!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL