1 Replies - 665 Views - Last Post: 09 December 2010 - 10:23 PM Rate Topic: -----

#1 Guest_Pramod*


Reputation:

Java table sort

Posted 09 December 2010 - 10:08 PM

Hi,
I have a JTable (myTable). when i click on the the table column headder, the table gets sorted.

I have a function which calls myTable.getModel().getValueAt(row,col).

the value i get before and after both are same.
I am not getting the value of the sorted table cell data..

How can i get the value of sorted table cell data.

Thanks in advance
Is This A Good Question/Topic? 0

Replies To: Java table sort

#2 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: Java table sort

Posted 09 December 2010 - 10:23 PM

How did you enabled sorting by clicking on the column header ? This is not the default behaviour.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1