I'm currently using a group table and would like to set the ColumnComparatorContextProvider. When I set it as below:
defaultGroupTableModel.setColumnComparatorContextProvider(new DefaultGroupTableModel.ColumnComparatorContextProvider() {
@Override
public ComparatorContext getColumnComparatorContext(
TableModel tableModel, int column) {
//Some code to determine if its the correct column / comparator context
}
});
The comparator is returned properly when sorting by a grouped column. For example, if I have my method return my comparator for column 5 ,group by column 5, and then sort by column 5, I see my comparator returned and sort correctly.
When I sort by an ungrouped column, I do not see this method being called in the debugger. Is there another method I should be using?
Thank you,
Nick