Dean Schulze
Dean Schulze

Reputation: 10303

How do I align the header text in TableColumns?

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

Answers (1)

Kachna
Kachna

Reputation: 2961

Try using this css:

.table-view .column-header .label{
    -fx-alignment:CENTER_LEFT
}

Upvotes: 2

Related Questions