Fix the following user-reported issue:
"I copy the example file of Using JavaFX UI Controls: Table View, but when i edit a field and then sort a column and again edit the same row index, then shows me the same value of the first edition."
Modify the startEdit() method in the TableViewSample of the UI Controls tutorial as follows:
public void startEdit() {
super.startEdit();
//if (textField == null) {
createTextField();
//}
setText(null);
setGraphic(textField);
textField.selectAll();
}
"I copy the example file of Using JavaFX UI Controls: Table View, but when i edit a field and then sort a column and again edit the same row index, then shows me the same value of the first edition."
Modify the startEdit() method in the TableViewSample of the UI Controls tutorial as follows:
public void startEdit() {
super.startEdit();
//if (textField == null) {
createTextField();
//}
setText(null);
setGraphic(textField);
textField.selectAll();
}