Reputation: 184
Please help me with simple code to bring combo box inside a table view .
column2.setCellValueFactory(new ComboBoxTableCell.forTableColumn(null));
column2.setPrefWidth(150);
Is this the way to add combo box into table view.Is there need to create fxml for create table view.Please if you have runnable code please share
Upvotes: 1
Views: 1328
Reputation: 184
column2.setCellFactory(ComboBoxTableCell.forTableColumn("A","B", "C"));
Upvotes: 1