Skip to content

How to use it with Combobox Tablecell in Tableview #3

@shaileshsathe

Description

@shaileshsathe

The example is very helpful. But how to use this with Combobox table cell in TableView.
for example I have table column like

@FXML
 TableView tableView;

@FXML
 TableColumn<DataSortingTableModel, ParameterModel> parameterColumn;


ObservableList<ParameterModel> parameterList = = FXCollections.observableArrayList();

parameterList.add(new ParameterModel(1, "Param1"));
parameterColumn.setCellValueFactory(value -> value.getValue().getParamterName());
parameterColumn.setCellFactory(ComboBoxTableCell.forTableColumn(parameterList));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions