Get Attribute XML in JTree

2019-07-24 01:18发布

问题:

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

回答1:

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