Turn Off Sorting for JTable TableModel Insert?
I have an editable, sorted JTable with a custom TableModel that allows the user to insert/update/delete. When the user chooses to insert a new row, a blank row is added to the end of the TableModel. I would like the row to appear at the bottom of the JTable. Unfortunately, the sorter sorts this blank row to the top of the JTable.
Is there a way to turn off sorting when rows are inserted in the TableModel? I found the "setSortsOnUpdates()" method, but there appears to be no comparable "setSortsOnInserts()" method.
Any recommendation on how best to turn off sorting when inserting rows in the underlying TableModel? Would the Mustang developers consider adding a "setSortsOnInserts()" method?
Thanks in advance for any help and thanks for your efforts. The new JTable filtering and sorting features are much appreciated!