在JTree中获取属性XML [英] Get Attribute XML in JTree
本文介绍了在JTree中获取属性XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此教程,当我右键单击删除菜单,然后显示带有属性值的对话框时,如何获取xml的属性?
In this tutorial, how I get attribute of xml when I right click delete menu, then show the dialog with the value of attribute?
推荐答案
在deleteAction
中,您可以引用clickedPath.getLastPathComponent()
来访问所选节点.
In deleteAction
, you can reference clickedPath.getLastPathComponent()
to access the selected node.
这篇关于在JTree中获取属性XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文