If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

TableModel.getColumnClass()

Hi, anybody here has ever encountered and problem like mine? Please help if
you do.
I have an JTable and the table model derived from AbstractTableModel, I use
TableSorter from the tutorial to sort the table(I have also implemented my
own sorting method, but the result is the same), but whatever the data type
of the table column, the getColumnClass() method always return String type,
so the table is always sorted by String type.
My implementation of this method is as following:
return getValueAt(0, columnIndex).getClass();
What is possibly wrong?