合并 JXTreeTable 中的单元格
我想合并 JXTreeTable 中的两个单元格。 这可能吗? 我已阅读 Merging-cells-in-jtable">Merging cells in JTable 的解决方案,但这不适用于 JXTreeTables。
我的意思是合并单元格:我想创建一个像这样的结构:
节点 1 | 3 个单元格的标题 | 3 个单元格的标题 |
子节点 | c1 | c2 | c3 | c1 | c2 | c3 |
子节点 | c1 | c2 | c3 | c1 | c2 | c3 |
因此,“3 个单元格的标题”是通过合并同一行/节点上的 3 个不同单元格来创建的。
I want to merge two cells in a JXTreeTable. Is this possible? I have read the solution for Merging cells in JTable, but this does not work for JXTreeTables.
What I mean with merging cells: I want to create a structure like this:
node 1 | title for 3 cells | title for 3 cells |
subnode | c1 | c2 | c3 | c1 | c2 | c3 |
subnode | c1 | c2 | c3 | c1 | c2 | c3 |
so the 'title for 3 cells' is created by merging 3 different cells on the same row/node.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,根据 http://www.inf.furb.br/~piva/downloads/compilador/Compilador/Compilador/bibliotecas%20extras/swinglabs-0.8.0-bin /swinglabs/docs/api/org/jdesktop/swingx/JXTreeTable.html 及其链接,类本身似乎没有此类“合并”功能 - 在我看来,您只需要这样做在应用程序级代码中执行类似“合并”的操作。
Unfortunately, per http://www.inf.furb.br/~piva/downloads/compilador/Compilador/Compilador/bibliotecas%20extras/swinglabs-0.8.0-bin/swinglabs/docs/api/org/jdesktop/swingx/JXTreeTable.html and links therefrom, it seems no such "merging" functionality is available in the class itself -- looks to me like you'll just have to do the "merging"-like operations in your app-level code.