Merging columns in a JTable
        Posted  
        
            by Harish
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Harish
        
        
        
        Published on 2010-04-06T10:43:39Z
        Indexed on 
            2010/04/06
            11:13 UTC
        
        
        Read the original article
        Hit count: 412
        
I am working in JTable and I have a requirement like this. Say There are 4 columns namely 10,20,30,40
Now the value usually comes like 10-20 20-30 and 30-40 So it was easy for us to display the name for this range.
But recently the values have started to come randomly like 15-25 10-25,25-30
In this case our JTable should dynamically adjust the size of the row such that it represents that range only meaning it should not disturb the existing cells and only rows which diverge from the normal range.
TO be more precise I should be able to merge and split cells based on the content of the cell.
© Stack Overflow or respective owner