简体   繁体   中英

javafx treetableview column size

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 : 在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM