While accessing the field using getDeclaredField("textField") no longer works from Java12 I am looking for a better way to update the text inside a TreeTableView.
I was thinking of a TextFieldTreeTableCell, would that work? How can be instantiated a TextFieldTreeTableCell from a TreeTableCell? Will be this a better practice to update the text into a TreeTableView?
https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/cell/TextFieldTreeTableCell.html
Field field = cell.getClass().getDeclaredField("textField");
field.setAccessible(true);
Object obj = field.get(cell);
if (obj instanceof TextField) {
TextField textField = (TextField) obj;
textField.clear();
textField.setText(text);