Reputation: 799
I Applied a row sorter to JTable
, Table retrieves too many records and when the user clicks on table header to sort the special field, it causes a problem and the Application crashes.
I would like to disable sort when the table hasn't loaded completely! How can I do that?
Upvotes: 3
Views: 2942
Reputation: 979
JTable.setAutoCreateRowSorter(false);
Unless the TableRowSorter
is set somewhere, I don't think that you have to call setRowSorter(null)
Upvotes: 2
Reputation: 365
try calling the method "setRowSorter" with a null parameter. It should disable all sorting in 1.6 (and hopefully, also in 1.7).
Upvotes: 0