Click to See Complete Forum and Search --> : JTable Selection after Collections.sort(....);


andrepr
August 30th, 2002, 10:30 AM
Hi masters,
i´m back again! after a long time i´m working with Java again..

I´m in a bnig trouble.. i am using a JTable that have a column listener that sorts data by the clicked column.. it works ok, but when i select a entire row and sorts by column the color of selection is loosed. the row continue selected but it not colored. i tried repaint() after selection, tried m_table.addRowSelectionInterval(i, i);
and
m_table.changeSelection(i, i, false, false);
but nothing works.
do you have any idea?

thainks a lot!:confused: