JTree: Comment obtenir le chemin d'accès d'un nœud sélectionné

Est-il un moyen d'obtenir le chemin d'accès d'un nœud sélectionné dans un JTree comme en utilisant quelque chose comme

String pathForNode = JTree.getLastSelectedPathComponent().getPath().toString();
  • Voir aussi ce Q&A.
InformationsquelleAutor newSpringer | 2012-07-16