I try to make a tableview data but some column, data is too long and i want it wraptext but when using setCellFactory, i can not resize and edit that cell.
examlpe
column("Values", ItemViewModel::values).makeEditable()
.setCellFactory {
val cell = TableCell<ItemViewModel, String>()
val text = Text()
cell.graphic = text
cell.prefHeight = Control.USE_COMPUTED_SIZE
text.wrappingWidthProperty().bind(it.widthProperty())
text.textProperty().bind(cell.itemProperty())
cell
}
I try to make a tableview data but some column, data is too long and i want it wraptext but when using setCellFactory, i can not resize and edit that cell.
examlpe
column("Values", ItemViewModel::values).makeEditable()
.setCellFactory {
val cell = TableCell<ItemViewModel, String>()
val text = Text()
cell.graphic = text
cell.prefHeight = Control.USE_COMPUTED_SIZE
text.wrappingWidthProperty().bind(it.widthProperty())
text.textProperty().bind(cell.itemProperty())
cell
}