I have the following jtable which is sorted on sortKey column in ascending order.
row# col1 col2 col3 sortKey
1 a b c 1
2 d e f 2
3 g h i 3
I have used the TableRowSorter to sort this JTable. now i want to insert an empty row between row#1 and row#2 the result should look like.
row# col1 col2 col3 sortKey
1 a b c 1
2
3 d e f 2
4 g h i 3
but instead i get the result like
row# col1 col2 col3 sortKey
1
2 a b c 1
3 d e f 2
4 g h i 3
how can i fix the position of empty row into this table when it is sorted?