Align top tabs in JavaFX

Is it possible to right-align tabs at the top of TapPane? I mean the entire set of tabs, not the label text inside the tab.

I already tried something like this:

#main-tabs .tab-pane:top *.tab-header-area {
    -fx-alignment: CENTER_RIGHT;
}

and also fooling him with CSS:

#main-tabs .tab-pane:top *.tab-header-area {
    -fx-padding: 0.416667em 100% 0.0em 0%;
}

Nothing works. I can manually change the left padding using fixed sizes, but this does not help at the resize stage. I canโ€™t figure out how to properly maintain tabs.

+3
source share
1 answer

if you use (scene constructor), you can do this with the following steps:

  1. Select tab bar
  2. In Properties, find the Node Orientation and select (Right to Left)
0
source

All Articles