JTable cell spanning more than one column
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)
精彩评论