NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

A problem with development using Netbeans RCP: BeanTreeView

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
dxwary



Joined: 22 Feb 2012
Posts: 5
Location: Shandong zaozhuang China

PostPosted: Wed Feb 22, 2012 4:06 am    Post subject: A problem with development using Netbeans RCP: BeanTreeView Reply with quote

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

PostPosted: Wed Feb 22, 2012 7:26 am    Post subject: Reply with quote

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

PostPosted: Wed Feb 22, 2012 9:01 am    Post subject: A problem with development using Netbeans RCP: BeanTreeView Reply with quote

Thank you, thank you very much.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo