Table cells editing
I have a table with few rows and columns filled up with certain values. I edit a cell. Now if i get the DataVector of the table this edited value is not obtained. If I try clicking some other cell after editing then get the DataVector the edited value is obtained. Why is this? Should I have any Listeners added? Please reply in depth
Hi,
hmm ... it seems, that the editing progress was not finished in the first case. JTable updates an entry in the datamodel only if the editing process is finished. As long as you see the blinking cursor in this field, editing is in progress and you can avoid storing by pressing ESC - but when you TAB to another cell or click another cell, the editing process is finished and the data is updated in the datamodel.
greetings Marsian