合并 JXTreeTable 中的单元格

发布于 2024-07-20 10:00:06 字数 593 浏览 6 评论 0原文

我想合并 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

入怼 2024-07-27 10:00:06

不幸的是,根据 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文