我们如何在swing应用程序中使用java实现.xml文件? [英] How we implement .xml file using java in swing application?

查看:133
本文介绍了我们如何在swing应用程序中使用java实现.xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用swing应用程序。有一个可扩展树视图,当我们右键单击它时,我们可以选择选项。如果我从中选择操作,我会弹出一个弹出窗口并可以从下拉选项中选择相应的操作。

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. If i choose action from it, i get a pop-up and can select the appropriate action from the drop down options.

现在我试图在我的整个项目中搜索下拉选项是用源代码编写的,我只在.html和.xml文件中找到它。在.xml文件中就是这样..

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. In .xml file it was like this..

在另一个.xml文件中,它的扩展树视图是这样写的。

In another .xml file it expandale tree view was written like this.

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

如何实施?实际上我对这些.java,.html,.xml文件如何交互以产生这种类型的swing应用程序一无所知?在此先感谢

How these are implemented? Actually i am clueless about how these .java,.html,.xml files interact to produce such kind of swing application? Thanks in Advance

推荐答案

XMLTree ,提到此处是一个从文件 xml.xml 中读取节点的示例。

XMLTree, mentioned here, is an example that reads nodes from the file xml.xml.

这篇关于我们如何在swing应用程序中使用java实现.xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆