JTable and JTextField
Hello,
I have a problem with JTable and JTextFields on it. I have an FocusAdapter that listens
for events from JTextField.
publicclass MyFocusAdapterextends FocusAdapter{
public MyFocusAdapter(){
}
publicvoid focusLost(FocusEvent e){
JTextField field = (JTextField) e.getSource();
field.setText("23,23;23,12");
}
}
This is the code that i use to add text field to the table,
TableColumn column = jTable1.getColumnModel().getColumn(0);
column.setCellEditor(new DefaultCellEditor(field));
But when i loose focus from 1 cell in the table, method is invoked but the value is not updated. Any ideas how to do this on the right way ?

