[Solved] JavaFX – What do I need to pass in the forTableColumn() for a CheckBoxTableCell


It seems you just pass the column itself.

giveRefundsCol.setCellFactory(CheckBoxTableCell.forTableColumn(giveRefundsCol));

Fun story it isn’t used in the Oracle source code, you could just pass null It would work the same

public static <S> Callback<TableColumn<S,Boolean>, TableCell<S,Boolean>> forTableColumn(
        final TableColumn<S, Boolean> column) {
    return forTableColumn(null, null);
}

0

solved JavaFX – What do I need to pass in the forTableColumn() for a CheckBoxTableCell