Is it possible to style columns individually in a tableview?
I have been attempting to make some column headers left-aligned and others right-aligned, as shown below:
| hdr1 | hdr2 | hdr3 | hdr4 |
In my css stylesheet, I experimented with the following code:
#colHeadingLeft .column-header{
-fx-alignment: CENTER_LEFT;
}
#colHeadingRight .column-header{
-fx-alignment: CENTER_RIGHT;
}
Despite setting id attributes for each column header tag in SceneBuilder using Java FX CSS, all headers end up being center aligned like this:
| hdr1 | hdr2 | hdr3 | hdr4 |
I have tried numerous solutions without success. Could it be that styling columns individually in a tableview is not supported?