Quick JTable Column Sort Question
I have a JTable that can be sorted by double clicking the column heading.
I have implemented that with the code:
TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(model);
I need to make a special sorter for this JTable though because of its content. For example, some of the values are numbers. I want to sort by numbers instead of the String values of those numbers. Another column has dates formatted MM/DD/YYYY and I would like to sort based on those instead of their String values.
Does anyone have any sample code of creating their own JTable Row Sorter that I can read, modify, and work off of?
Re: Quick JTable Column Sort Question
So I have managed to fix this (mostly), but I am having an issue now. I made another post for this issue (as doing so seemed appropriate since it isnt really relevant to this): http://www.javaprogrammingforums.com...e-problem.html