Merging column headers alone in JTable

Posted by Harish on Stack Overflow See other posts from Stack Overflow or by Harish
Published on 2010-04-12T13:41:20Z Indexed on 2010/04/12 13:43 UTC
Read the original article Hit count: 492

Filed under:
|

Is there a way to merge column headers on click of a button but the values in the cell should get appeneded with each other?

For instance:

10      15      20     25     30
A       B       C      D      E
B       C       D      A      E

10              20            30
AB              CD            E
BC              DA            E

Actually the value A represents 10-15 B represents 15-20 and so on.Is this possible in JTable? Please don't confuse my earlier question with this.Here we try to merge two column headers not cells at the same time we append the values of the cell.

© Stack Overflow or respective owner

Related posts about java

Related posts about jtable