How to get TableHeaderRow from TableView nowadays in JavaFX?

前端 未结 2 1543
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-12 19:03

I saw examples on how to get table header in many places with code

TableHeaderRow header = (TableHeaderRow) tableView.lookup(\"TableHeaderRow\");
         


        
2条回答
  •  不知归路
    2021-01-12 19:45

    lookup("TableHeaderRow"); works, but it needs called after the table is rendered or it will return null

提交回复
热议问题