是否有允许可变行高的 JTreeTable 实现
我已经在这个问题上寻找了一段时间。我需要一个支持可变行高的JTreeTable
。具体来说,我希望显示顶级节点的行比它们下面的子行更高。
我一直在使用 SwingX 实现 (JXTreeTable
),它基于Sun 原始文章。但是,它明确不允许可变行高,并且在不重写 JXTree 的情况下我看不到解决办法。
在我开始做一些令人讨厌的事情之前,我们将不胜感激地收到任何提示/指示......
I have been searching for a little while on this one. I need a JTreeTable
that supports variable row height. Specifically, I want the rows that show the top level nodes to be taller than the child rows beneath them.
I have been using the SwingX implementation (JXTreeTable
) which is based on the original Sun articles. However, it specifically disallows variable row height, and without rewriting JXTree
I can't see a way through.
Any tips / pointers would be gratefully received before I embark on something nasty...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NetBeans 有 Outline 组件,它是一个树表,它可以在 NetBeans 外部使用(只需找到正确的 JAR 文件)。
这是一篇关于它的文章:
http://netbeans.dzone.com/news/take- new-swing-tree-table-a-
我可能是错的,但我相信它支持可变的行高。
NetBeans has the Outline component which is a tree table, and it can be used outside NetBeans (just find the right JAR files).
Here is an article about it:
http://netbeans.dzone.com/news/taking-new-swing-tree-table-a-
I may be wrong but I believe it supports variable row heights.