Set font in javafx

前端 未结 3 1596
说谎
说谎 2020-12-06 03:28

How to set font to a column in table view in java fx. I have a table with 3 columns and i want to set different fonts for each of the columns. Also, is it possible to change

3条回答
  •  醉酒成梦
    2020-12-06 04:06

    what style (syntax) to specify that for column 1 use this stlye 1, column2 use style 2

    Supply a custom cell factory which supplies cells to which you have applied styleclasses you have defined in css. The linked documentation contains examples which should provide you with enough information to achieve this.

提交回复
热议问题