question: protected void updateTree ( DocumentEvent event ) { updatingSelection = true ; try { TreeModel model = getTreeModel ( ) ; Object root = model . getRoot ( ) ; for ( int counter = model . getChildCount ( root ) - 1 ; counter >= 0 ; counter -- ) { updateTree ( event , ( Element ) model . getChild ( root , counter ) ) ; } } finally { updatingSelection = false ; } }
target:  Updates the tree based on the event type. This will invoke either updateTree with the root element, or handleChange.