How to get newly updated data in a cell in a DefaultTableModel
===

I create a table from DefaultTableModel, and then I use table.getModel().setValueAt(value,row,col) to add the 1st value in a cell. However, when I click the mouse on that cell and change the data inside to the 2nd value. and then I get that value back by getValueAt(row,col), it always returns that first value even though on the table the 2nd value is displayed in the cell. What am I wrong?

Hope you understand my messy idea.

Thanks a lot!