@Override public void nodeChanged(TreeNode node){
  if (listenerList != null && node != null) {
    TreeNode parent=node.getParent();
    if (parent == null && node != root) {
      parent=root;
    }
    if (parent != null) {
      int anIndex=getIndexOfChild(parent,node);
      if (anIndex != -1) {
        int[] cIndexs=new int[1];
        cIndexs[0]=anIndex;
        nodesChanged(parent,cIndexs);
      }
    }
  }
}

@ Override public void nodeChanged ( TreeNode node ) { if ( listenerList != null && node != null ) { TreeNode parent = node . getParent ( ) ; if ( parent == null && node != root ) { parent = root ; } if ( parent != null ) { int anIndex = getIndexOfChild ( parent , node ) ; if ( anIndex != - 1 ) { int [ ] cIndexs = new int [ 1 ] ; cIndexs [ 0 ] = anIndex ; nodesChanged ( parent , cIndexs ) ; } } } }
invoke this method after you ' ve changed how node is to be represented in the tree .
