I want to merge rows as shown in the JTable
. I have no idea about row merging. I am using DefaultTableModel
for rendering data from DB.
Asked
Active
Viewed 635 times
0

Andrew Thompson
- 168,117
- 40
- 217
- 433

User123
- 71
- 3
- 14
-
1possible duplicate of [JTable cell span merge](http://stackoverflow.com/questions/11588462/jtable-cell-span-merge), also see [here](http://stackoverflow.com/questions/21856733/how-to-merge-cell-in-defaulttablemodel-jtable) – alex2410 May 19 '15 at 06:34
-
I did not get any idea from code and getting StatckOverFlow error while running above mensioned example.Can u explain the points – User123 May 19 '15 at 08:04
-
In related links you can find that problem and possible solutions – alex2410 May 19 '15 at 08:06
-
Post [MCVE](http://stackoverflow.com/help/mcve) for help. That's complicated to solve problems without code. – alex2410 May 19 '15 at 08:24
-
I copy [code](http://www.java2s.com/Code/Java/Swing-Components/MultiSpanCellTableExample.htm) then fix `StackOverflowError` like [here](http://stackoverflow.com/a/21977825/2894369) and all work fine. Also you can try [that](https://code.google.com/p/spantable/source/browse/SpanTable/src/main/java/spantable/?r=b5aa2f0d7bc6e0ced427562dcc22396b41963948) – alex2410 May 19 '15 at 08:33
-
Is there any easy way to do this.Can you add description to this example – User123 May 19 '15 at 10:17