compare
public int compare(int row1,
int row2,
int column,
javax.swing.table.TableModel tableModel)
Compares two rows for order. Returns a negative integer, zero,
or a positive integer as the first row is less than, equal to,
or greater than the second.
- Specified by:
compare
in interface RowComparator
- Parameters:
row1
- the first row to be comparedrow2
- the second row to be comparedcolumn
- sorting columntableModel
- table's model
- Returns:
- a negative integer, zero, or a positive integer as the
first row is less than, equal to, or greater than the
second.