how to update JTable values
posted 13 years ago
Here is the problem. I have a table that is editable by direct keyboard input. After the input I will collect the table data by clicking a button. However I found I can't get the correct value of the last cell of the table, because even though I clicked on the button, last cell of the table is still get focused, thus the new value is not stored in the tableModel. I want to know is there a way that I can force the table to update the values if I click the button. Thanks in advance.