I\'m trying to put a ComboBox in a table cell, but I can\'t. the code is the next:
private void cargaTablaDesglose() {
TableColumn
The part of the problem is that you're trying to set cell factory into cell value factory field of TableColumn
. Try this instead:
ObservableList<String> cbValues = FXCollections.observableArrayList("1", "2", "3");
TableColumn<Map, String> column2 = new TableColumn<>(Desglose2);
column2.setCellFactory(ComboBoxTableCell.forTableColumn(new DefaultStringConverter(), cbValues));