TableColumn, onEditCommit not working

时间:2018-02-03 09:08:23

标签: java javafx

I try to have a CheckBox in a TableColumn linked to a boolean property. I have the TableColumn configured like this:

cActive.setCellValueFactory(c -> {
    return c.getValue().activeProperty();
});
cActive.setCellFactory(CheckBoxTableCell.forTableColumn(cActive));
cActive.setEditable(true);
cActive.setOnEditCommit(event -> {
            System.err.println(event);
});

The onEditCommit event is not fired when I check/ uncheck the box.

0 个答案:

没有答案