JavaFX 2 TableView : different cell factory depending on the data inside the cell
问题 I am trying to use the table view to render / edit the \"key = value\" pairs. So the table is supposed to have two columns : \"key\" and \"value\". Key is just a normal string, and value can be anything. My problem is that the data type of the values can be different from row to row. Basically, I wanted to use checkboxes for boolean values and choices for lists. I have found a way to render the whole table column with checkboxes or choices by setting the cell factory: final TableColumn