Hi, anybody here has ever encountered and problem like mine? Please help if
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?
Please help, thank you so much!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL