columnName.setEditable(false) So How i can apply this method on dynamic table and Here is my code
private static final List<String> groups = Arrays.asList("Sunday", "Monday", "Tuesday", "Wednesday","Thursday","Friday"); TableView<AttributeRow> attributeTable = new TableView<>(); for (String group : groups) { //creating dynamic column TableColumn<AttributeRow, Boolean> groupColumn = new TableColumn<>(group); groupColumn.setCellFactory(CheckBoxTableCell.forTableColumn(groupColumn)); groupColumn.setCellValueFactory(cellData -> cellData.getValue().activeProperty(group)); attributeTable.getColumns().add(groupColumn); } Any help will be appreciated
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)