I'm using the Example 12-11 to "to commit the edit on the focus change, which is an expected user experience" from here http://docs.oracle.com/javafx/2/ui_controls/table-view.htm
It refers to an older version of JavaFX so it might be outdated but I couldn't find any other documentation to fulfil the "edit on focus change" requirement.
The given solution works as expected when the user edits the cell and clicks outside the table or on the same row the edited cell belongs but it discards the changes if the user clicks on some other row of the table.
As the documentation states, the "commit on focus change" is often an expected behaviour and it would be nice to have it provided by the TextFieldTableCell or something similar (maybe deactivated by default if you feel it's not that often expected).
Others facing this: http://stackoverflow.com/questions/21457902/javafx-tableview-cell-editor
It refers to an older version of JavaFX so it might be outdated but I couldn't find any other documentation to fulfil the "edit on focus change" requirement.
The given solution works as expected when the user edits the cell and clicks outside the table or on the same row the edited cell belongs but it discards the changes if the user clicks on some other row of the table.
As the documentation states, the "commit on focus change" is often an expected behaviour and it would be nice to have it provided by the TextFieldTableCell or something similar (maybe deactivated by default if you feel it's not that often expected).
Others facing this: http://stackoverflow.com/questions/21457902/javafx-tableview-cell-editor
- relates to
-
JDK-8089514 [TableView, TreeView, ListView, TreeTableView] Clicking outside of the edited cell, node, or entry should commit the value
- Open