I have a JTable with some data and some empty rows.
The table is constructed with a table model with 5 rows of data. But I have it showing and additional 6 empty rows below the 5 filled rows by overloading the getRowCount()
to return 11 in the table model.
However when I do a sort, the empty rows will appear at the top of the table. I would like the empty rows to always show at the bottom of the table.
What is the best way of doing this without creating a second table with empty rows tacked on below the one that is sort-able?
Thanks!