Java中的分层表列
有没有支持分层列的Java库?
例如(前三行是列):
------------------------------------------------
2008 |
------------------------------------------------
January | February |
------------------------------------------------
Week1 | Week2 | Week3 | Week 1 | Week2 | Week3 |
------------------------------------------------
10 | 20 | 14 | 12 | 15 | 3 |
------------------------------------------------
Is there any Java library that supports hierarchical column?
For example (the first three row are columns) :
------------------------------------------------
2008 |
------------------------------------------------
January | February |
------------------------------------------------
Week1 | Week2 | Week3 | Week 1 | Week2 | Week3 |
------------------------------------------------
10 | 20 | 14 | 12 | 15 | 3 |
------------------------------------------------
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
可能是 JXTreeSwingLab 的 a> 可以接近您正在寻找的内容。
插图此处,来自Swingx 项目
http://avatar21.superihost.com/images/JXTableJXTreeTable.png
May be a JXTree from SwingLab could approach what you are looking for.
Illustration here, from the Swingx project
http://avatar21.superihost.com/images/JXTableJXTreeTable.png
适用于 JSF 的 Infragistics WebGrid:
替代文本 http://www.infragistics.com/uploadedImages/Products/NetAdvantage_for_JSF/Features/WebGrid /Gallery/WebGrid_Hierarchical.png
Infragistics WebGrid for JSF:
alt text http://www.infragistics.com/uploadedImages/Products/NetAdvantage_for_JSF/Features/WebGrid/Gallery/WebGrid_Hierarchical.png
感谢您的回答。 实际上我的桌面应用程序需要它。 目前我正在评估 SWT 表,但似乎它不支持分层表列。 也许我会看看 Swing JTable。
Thanks for your answers. Actually I need it for my desktop-based application. Currently I'm evaluating SWT table, but seems it does not support hierarchical table column. Maybe I'll take a look at Swing JTable.
或者按照本教程一起使用本机 JTable 和 JTree:
java_sun_articles_treetable1
Or just follow this tutorial to use native JTable and JTree together:
java_sun_articles_treetable1
Estima Visual Java/SWING 组件库 4.0:
(来源:eltima.com)
Estima Visual Java/SWING Components Library 4.0:
(source: eltima.com)
如果您正在寻找 JavaEE 解决方案,您可能需要查看 [fleXive],一个开源(框架为 LGPL,带有可视化编辑器的可选后端为 GPL)。
请随时在论坛上提出任何问题。
(来源:flexive.org)
If you are looking for a JavaEE solution you might want to have a look at [fleXive], an open source (LGPL for the framework and GPL for the optional backend with visual editors).
Please feel free to ask any questions on the forums.
(source: flexive.org)