Hi there,
can someone tell me how to programmatically select a node in my beanTreeView 
(backed up by an explorerManager) after being created in my data model? I tried 
to do this in parent node, by adding a NodeListener like this:

        parentNode.addNodeListener(new NodeAdapter() {
            public void childrenAdded(NodeMemberEvent ev) {
                if (ev.isAddEvent()) {
                    final Node node = ev.getNode();
                    SwingUtilities.invokeLater(new Runnable() {
                        public void run() {
                            try {
 Node[] { node });
                            } catch (PropertyVetoException ex) {

When I create a new item in my data model, the ChildFactory refreshes 
asynchronously itself and creates a new node representing the data. 
Unfortunately this does’t work because the child node may be not exists yet in 
the explorer manager. Any suggestions?
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:

Reply via email to