Java Swing 表树 [英] Java Swing table tree

查看:42
本文介绍了Java Swing 表树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你在 Eclipse 中打开一个 XML 时,内容可以像这样的树结构显示

When you open a XML in Eclipse, the content can be shown in as a tree structure like

树被嵌入"在表格中,内容显示在单独的列中.

The tree is "embedded" in a table and the content is showed in a seperate column.

这将非常适合在 Swing 中复制,不是专门针对 XML 内容,而是针对具有树结构的类似数据.

This would be very nice to replicate in Swing, not for XML content specifically, but for similar data with tree structure.

更新

我刚刚了解了 JTreeTable,但我确实需要在 NetNeans 中做到这一点.可能应该提到这一点,抱歉.

I just learned about JTreeTable, but I really need to do this in NetNeans. Should probably have mentioned that, sorry.

有什么想法吗?

推荐答案

SwingX 有一个 JXTreeTable,它基于在@mKorbel 引用的旧示例(指向 sun 代码/文章的链接)上有很大改进

SwingX has a JXTreeTable, it's based on but much improved over the oldish examples (links to sun code/article) cited by @mKorbel

这篇关于Java Swing 表树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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