Populate combo box list dynamically for each row in javaFx table view

前端 未结 2 564
广开言路
广开言路 2020-12-11 07:26

I have created a table view in java Fx, one of the columns in table view consists of ComboBoxTableCell.Please find below the code for table view

public clas         


        
2条回答
  •  执笔经年
    2020-12-11 08:24

    You need to define a CellValueFactory for the cell. This factory defines the values that will be shown in the column by using the current value of the table item list for the given row. See this link: Cell factory in javafx

提交回复
热议问题