tags:

views:

376

answers:

2

If the columns of my JTable are unalphabetized, I can use getSelectedRows() and get values of their rows without any trouble. But, if the user clicks on the column name and the rows are alphabetized in that column, getSelectedRows() returns not the currently selected rows, but the rows that were originally there before alphabetization.

How can I get the currently selected rows when the columns are alphabetized?

A: 

Probably a bit late, but thought I'd post this anyway.

Have a look at the JTable method convertRowIndexToModel(row). It returns the row number as if the row number hasn't been sorted.

Nicks
A: 

Awesomo dude, awesomo.

bob barker