JavaFX TableColumn resize to fit cell content

前端 未结 4 910
无人共我
无人共我 2020-12-19 01:26

I\'m looking for a way to resize a TableColumn in a TableView so that all of the content is visible in each cell (i.e. no truncation).

I noticed that double clicking

4条回答
  •  粉色の甜心
    2020-12-19 02:15

    The current versions of JavaFX (e.g. 15-ea+1) resize table columns, if the prefWidth was never set (or is set to 80.0F, see TableColumnHeader enter link description here).

提交回复
热议问题