How to use CheckBoxTableCell
ericCDec 28 2012 — edited Dec 28 2012Hi All,
I would like to have editable checkbox in a table.
That's what I have now.
TableColumn selectCol = new TableColumn("Select");
selectCol.setEditable(true);
selectCol.setCellValueFactory(
new PropertyValueFactory<OrderCheck, Boolean>("selected"));
selectCol.setCellFactory(CheckBoxTableCell.forTableColumn(selectCol));
Issues
1) It always display unchecked checkbox no matter the "selected" value in the object
2) How does "selected" value got updated after checkbox is selected or unselected?
Thanks.
Edited by: ericC on Dec 27, 2012 10:06 PM