开发者

JTable cell spanning more than one column

开发者 https://www.devze.com 2023-02-02 22:41 出处:网络
I want to have a JTable with N (!=1) columns in which some rows have only one cell that spans the whole N columns.

I want to have a JTable with N (!=1) columns in which some rows have only one cell that spans the whole N columns.

I've found开发者_Python百科 an example on jguru (http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples4.html), however I'm yet to understand how it works.

I have also found some other discussions about this pointing to this article (http://www.swingwiki.org/howto:column_spanning), however the link has not been working for some time.

Does anyone have a solution or at least pointers to one?


Similar Question

  • JTable column spanning

Code-Guru Example

  • http://www.codeguru.com/java/articles/125.shtml
  • Java-6 updated sources: http://qoofast.blog76.fc2.com/blog-entry-2.html (translated)
    • ColumnGroup.java
    • GroupableTableHeader.java
    • GroupableTableHeaderUI

Swing-Wiki Example

  • http://www.swingwiki.org/column_spanning (currenlty not available, see archived copy)
0

精彩评论

暂无评论...
验证码 换一张
取 消