I created a table view with the cell editor using javafx2. To edit cell I created a textbox and created focus listener to find the changes in the cell. I called the CommitEdit() method to update the changes in table view but the table not get updated, but in SetOnKeyReleased() it is working?
The listener code I used for commiting the table cell:
textField.focusedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
if(!newValue){
commitEdit();
}
}
});