I have a sortable JTable set up to use a custom extension of the AbstractTableModel. However, some behavior of this table is what I expected, and I
JTable
AbstractTableModel
You can enable table sorting by clicking on header using this table.setAutoCreateRowSorter(true);
table.setAutoCreateRowSorter(true);
for more information visit this site http://www.codejava.net/java-se/swing/6-techniques-for-sorting-jtable-you-should-know