Search code examples
javaxmlswingjtree

Get Attribute XML in JTree


In this tutorial, how I get attribute of xml when I right click delete menu, then show the dialog with the value of attribute?


Solution

  • In deleteAction, you can reference clickedPath.getLastPathComponent() to access the selected node.