JTABLE - FocusEvent on CelEditor!

Hi, Im have a little problem: when im editing a cell in jtable and then i click in a button, the cellEditor do not do the event to update my TableModel, resuming: its like i did not have typed anything in table!

I really need help... i guess that its missing some focusEvent, like lostFOcusEvent in CellEditor, then when exit the celleditor (do not passing by the jTable, going right away to the Button) the celleditor fire the fireEditingStopped() event.

I just have no ideia how to do it....

Ice

[529 byte] By [iceboyy1] at [2007-9-26 2:01:29]
# 1
Are you calling stopCellEditing()?On the action of the button try doing this.row = table.getEditingRow();col = table.getEditingColumn();if (row != -1 && col != -1)table.getCellEditor(row,col).stopCellEditing(); Hope this helps...
gil_e at 2007-6-29 8:41:51 > top of Java-index,Archived Forums,Swing...