List of usage examples for javax.swing.tree MutableTreeNode getChildCount
int getChildCount();
TreeNode
s the receiver contains. From source file:org.openconcerto.erp.model.RubriquePayeTree.java
private static void removeNode(SQLRow row, MutableTreeNode nodeParent) { for (int i = 0; i < nodeParent.getChildCount(); i++) { Object o = nodeParent.getChildAt(i); if (o instanceof VariableRowTreeNode) { VariableRowTreeNode v = (VariableRowTreeNode) o; if (v.getID() == row.getID()) { model.removeNodeFromParent(v); }/*from w w w. ja v a 2s.com*/ } } }