How can I change the text alignment of a TableView column caption/header? I'd like some of my column headers to be right aligned for example?
It works for regular table cells when I change f.i. the css of the custom DataFX MoneyTableCell cell:
.money-cell {
-fx-alignment: TOP_RIGHT;
}
but it won't work for the ".table-view .column-header" style of the standard TableView:
.table-view .column-header,
.table-view .filler,
.table-view .column-drag-header {
-fx-alignment: TOP_RIGHT;
}