L
Lukasz
Hi,
I'm using TableSorter from page:
http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableSorter.java
and a JTable which works with this sorter:
http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableSorterDemo.java
I want to make the sorter work that way, that the first column will
always stay as it is - unsorted, even if one of the other columns is
sorted.
In mouseHandler of TableSorter class I replaced:
if (column != -1)
with:
if ((column != -1) && (column != 0))
Now, if I click the header of the first column, it won't be sorted. But
when any other header is pushed, the first columns is beeing sorted.
Glad for any help.
I'm using TableSorter from page:
http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableSorter.java
and a JTable which works with this sorter:
http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableSorterDemo.java
I want to make the sorter work that way, that the first column will
always stay as it is - unsorted, even if one of the other columns is
sorted.
In mouseHandler of TableSorter class I replaced:
if (column != -1)
with:
if ((column != -1) && (column != 0))
Now, if I click the header of the first column, it won't be sorted. But
when any other header is pushed, the first columns is beeing sorted.
Glad for any help.