javafx treetableview column size

952 views Asked by At

I'm developing a java fx application and I'm using a TreeTableView, and when I insert some data inside it , it looks like this : enter image description here

Is there a way , so I can make the columns stretch in order to view all the content inside the cell?

1

There are 1 answers

1
Branislav Lazic On

You could use #setPrefWidth method from TreeTableColumn class to set preferred width for columns. As shown in this example.