public boolean isExpanded(int row){
  TreeUI tree=getUI();
  if (tree != null) {
    TreePath path=tree.getPathForRow(this,row);
    if (path != null) {
      Boolean value=expandedState.get(path);
      return (value != null && value.booleanValue());
    }
  }
  return false;
}

public boolean isExpanded ( int row ) { TreeUI tree = getUI ( ) ; if ( tree != null ) { TreePath path = tree . getPathForRow ( this , row ) ; if ( path != null ) { Boolean value = expandedState . get ( path ) ; return ( value != null && value . booleanValue ( ) ) ; } } return false ; }
returns true if the node at the specified display row is currently expanded .
