How to correctly add new data to TableView and scroll to it

后端 未结 3 877
北海茫月
北海茫月 2020-12-20 17:14

Problem

I want to add data dynamically to a TableView and scroll to the new data\'s position. But when the rows in the TableView reach the ViewPort

3条回答
  •  甜味超标
    2020-12-20 17:29

    I solved this problem using fixed cells..

    listCategory.setFixedCellSize(40); 
    

    or

    -fx-fixed-cell-size : 40;
    

提交回复
热议问题