简体   繁体   中英

How to bring Combo Box inside TableView in JavaFX

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

column2.setCellFactory(ComboBoxTableCell.forTableColumn(“ A”,“ B”,“ C”)));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM