JavaFx how to align only one column-header in tableview?
问题 How to align title of only one column in tableview? The following css aligns all column-header but I want to align just one column: .table-view .column-header .label{ -fx-alignment:CENTER } 回答1: You can do that now with recent versions of JavaFX. Java 1.7 This worked for me with Java: 1.7.0_45 / JavaFX: 2.2.45-b18). It should be a recent version because it requires RT-14909 The column-header will automatically get the same "Id" as the TableColumn! Therefore your TableColumn(s) need an (CSS-)