Hi,

I have the following JTable:

 
|-----------------------------------------------------------------|
| Label| col1         | col2         | col3        | col4         |
|-----------------------------------------------------------------|
| Mat A| -            | -            | Material A  | Material A   |
|-----------------------------------------------------------------|
| Mat B| material B   | Material B   | -           | -            |
|-----------------------------------------------------------------|
I want to merge the cells that have the same values.

This is, i want my table to be displayed like this:

 
|-----------------------------------------------------------------|
| Label| col1         | col2         | col3        | col4         |
|-----------------------------------------------------------------|
| Mat A| -            | -            |         Material A         |
|-----------------------------------------------------------------|
| Mat B|         Material B          | -           | -            |
|-----------------------------------------------------------------|

Does anyone has an idea on how i can do that?

Thanks