About JTable ...

I have written a JFrame containing a JTable and a "next>>" button. If i have finished inputting all data into the table and press the next button, it always can't read the last data i have inputted.

I think that the system believe i am editting the last cell and haven't finished yet when i pressed the next button, so that cell just contains the previous data...

How can i improve this so that it can read the last one?

Please Help!!!

[468 byte] By [chris3388a] at [2007-9-30 0:23:25]
# 1
Hi,IMO you have to call stopCellEditing() in the JTable's TableCellEditor when the user click on your button. This will confirm the last input in the table.Andre
twupacka at 2007-7-16 4:52:52 > top of Java-index,Archived Forums,Swing...
# 2
table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
camickra at 2007-7-16 4:52:52 > top of Java-index,Archived Forums,Swing...