NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
dxwary
Joined: 22 Feb 2012 Posts: 5 Location: Shandong zaozhuang China
|
Posted: Wed Feb 22, 2012 4:06 am Post subject: A problem with development using Netbeans RCP: BeanTreeView |
|
|
hello friends,
Recently I tried to write a small application using netbeans rcp to do some data filtering job. In the programm, I use ExplorerManager and BeanTreeView component to display the model, after finishing those jobs, I find a problem, "How to open a corresponding editor topcomponet (already designed) when double clicked a node in the tree".In JTree, we can add a listener to watch the tree, find the node and then do anything we want, but I don't know how to do this using Netbeans Explorer API.
please help me, thank you. |
|
| Back to top |
|
 |
ebaumann
Joined: 16 Apr 2009 Posts: 99
|
Posted: Wed Feb 22, 2012 7:26 am Post subject: |
|
|
| You can override in the node getPreferredAction(), usually this action will be invoked on double clicks. |
|
| Back to top |
|
 |
dxwary
Joined: 22 Feb 2012 Posts: 5 Location: Shandong zaozhuang China
|
Posted: Wed Feb 22, 2012 9:01 am Post subject: A problem with development using Netbeans RCP: BeanTreeView |
|
|
| Thank you, thank you very much. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|