Package javax.swing.tree

Examples of javax.swing.tree.DefaultTreeModel.nodeStructureChanged()


      // else node = new RemoteProjectMutuableTreeNode(remoteProject);

      // sshRoot.add(new ProjectEntryMutuableTreeNode);
    }
    DefaultTreeModel model = (DefaultTreeModel) getModel();
    model.nodeStructureChanged(sshRoot);

  }

  private void createProjectNodes(String dir) {
    try {
View Full Code Here


              directoryList[i], project));
        }
      }
      JSimLogic.getInstance().setLocalProjects(localProjects);
      DefaultTreeModel model = (DefaultTreeModel) getModel();
      model.nodeStructureChanged(localRoot);
      model.nodeStructureChanged(root);
    } catch (Exception exc) {
      exc.printStackTrace();
    }
View Full Code Here

        }
      }
      JSimLogic.getInstance().setLocalProjects(localProjects);
      DefaultTreeModel model = (DefaultTreeModel) getModel();
      model.nodeStructureChanged(localRoot);
      model.nodeStructureChanged(root);
    } catch (Exception exc) {
      exc.printStackTrace();
    }

  }
View Full Code Here

    try {
      JSimMutuableTreeNode node = (JSimMutuableTreeNode) event.getPath()
          .getLastPathComponent();
      node.createNodes(false);
      DefaultTreeModel model = (DefaultTreeModel) getModel();
      model.nodeStructureChanged(node);
    } catch (Exception exc) {
      System.out.println("Tree initialized");
    }

  }
View Full Code Here

     * re-drawn.
     *
     */
    private void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Get the particular instance of the consumer that has been selected.
     *
 
View Full Code Here

     * re-drawn.
     *
     */
    private void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Update all children belonging to this node.
     *
 
View Full Code Here

     * This node has changed. Inform the parent tree that it needs to be
     * re-drawn.
     */
    protected void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) _tree.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Get the particular instance of the object that has been selected.
     *
 
View Full Code Here

     * re-drawn.
     *
     */
    public void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Get the particular instance of the server that has been selected.
     *
 
View Full Code Here

     * re-drawn.
     *
     */
    protected void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Get the particular instance of the queue/topic that has been selected.
     *
 
View Full Code Here

     * re-drawn.
     *
     */
    private void refresh() {
        DefaultTreeModel model = (DefaultTreeModel) tree_.getModel();
        model.nodeStructureChanged((DefaultMutableTreeNode) this);
    }

    /**
     * Update all children belonging to this node.
     *
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.