public static TreePath translatePath ( TreeModel newTreeModel , TreePath oldPath ) { return translatePath ( newTreeModel , oldPath , Objects :: equals ) ; }
Translates one TreePath to a new TreeModel . This methods assumes DefaultMutableTreeNodes .