public ManagementModelNode findNode ( String address ) { ManagementModelNode root = ( ManagementModelNode ) tree . getModel ( ) . getRoot ( ) ; Enumeration < javax . swing . tree . TreeNode > allNodes = root . depthFirstEnumeration ( ) ; while ( allNodes . hasMoreElements ( ) ) { ManagementModelNode node = ( ManagementModelNode ) allNodes . nextElement ( ) ; if ( node . addressPath ( ) . equals ( address ) ) return node ; } return null ; }
Find a node in the tree . The node must be visible to be found .