Java Swing表树 [英] Java Swing table tree
问题描述
当您在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.
UPDATE
我刚刚了解了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引用的旧的例子(链接到太阳代码/文章)大大改进了
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屋!