|
-
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?
Please help, thank you so much!
Janet
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks