I've got some problems with setOnEditCommit TreeView method. So here's my code
public class MyCheckBoxTreeViewConsulter extends TreeView {
public MyCheckBoxTreeViewConsulter() {
super();
this.setEditable(true);
this.setCellFactory(CheckBoxTreeCell.<ChampBdd>forTreeView());
this.setOnEditCommit(e -> {
System.out.println("hi");
});
}}
I have a result like this
Whenever I double click on one of theses row, nothing happens.
I want this kind of result to edit data
Any thoughts on this ?
Feel free to ask more of my code if you need it.