returns the parent path , which is a path containing all the same elements as this path , except for the last one . if this path contains only one element , the method returns null . concode_field_sep Object[] path concode_elem_sep TreePath parentPath concode_elem_sep long serialVersionUID concode_field_sep Object getLastPathComponent concode_elem_sep int hashCode concode_elem_sep boolean isDescendant concode_elem_sep boolean equals concode_elem_sep Object[] getPath concode_elem_sep Object getPathComponent concode_elem_sep String toString concode_elem_sep TreePath pathByAddingChild concode_elem_sep int getPathCount
TreePath function ( ) { if ( path . length <= 1 ) return null ; if ( parentPath == null ) parentPath = new TreePath ( this . getPath ( ) , path . length - 1 ) ; return parentPath ; }