Reputation: 10303
How do I align the text in the header of my JavaFX TableColumns (both TableView and TreeTableView)?
(The javadoc for TableColumn doesn't have one word on alignment and barely anything on the header.)
Thanks.
Upvotes: 0
Views: 1577
Reputation: 2961
Try using this css:
.table-view .column-header .label{
-fx-alignment:CENTER_LEFT
}
Upvotes: 2