wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how to make column like colspan ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to make column like colspan ?" Watch "how to make column like colspan ?" New topic
Author

how to make column like colspan ?

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
Can I make some jTable column have multiple column span (like the html table with colspan="5"). Where can I find some code sample like that ?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10486
    
    9

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#width


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
if you mean like excel's merge cells i.e. a single row can have one of its columns span 5 columns

http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples4.html

don't know if it's been fixed, but the code used to throw a StackOverflow error.
if you get that, for the fix google
AttributiveCellTableModel setDataVector
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make column like colspan ?