简体   繁体   English

我们如何在swing应用程序中使用java实现.xml文件?

[英]How we implement .xml file using java in swing application?

I am working in a swing application.There is a Expandable tree view in which when we right click on it we get options to select. 我正在使用swing应用程序。有一个可扩展树视图,当我们右键单击它时,我们可以选择选项。 If i choose action from it, i get a pop-up and can select the appropriate action from the drop down options. 如果我从中选择操作,我会弹出一个弹出窗口并从下拉选项中选择相应的操作。

Now i tried to search in my whole projcect where the drop-down options are written in source code and i found it only in .html and .xml file. 现在我尝试在我的整个项目中搜索下拉选项是用源代码编写的,我只在.html和.xml文件中找到它。 In .xml file it was like this.. 在.xml文件中它就像这样..

In another .xml file it expandale tree view was written like this. 在另一个.xml文件中,它的expandale树视图是这样写的。

<indexitem text="expandable tree view, about" target="d0e60"/>
<indexitem text="expandable tree view, actions" target="d0e91"/>

How these are implemented? 这些是如何实施的? Actually i am clueless about how these .java,.html,.xml files interact to produce such kind of swing application? 实际上我对这些.java,.html,.xml文件如何相互作用以产生这种类型的swing应用程序一无所知? Thanks in Advance 提前致谢

这里提到的XMLTree是一个从文件xml.xml中读取节点的xml.xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM