JavaFX 2.0 TabPane : Tabs at left and keep tab header horizontal

Baya picture Baya · May 23, 2013 · Viewed 8.5k times · Source

I'm trying to develop a GUI for a web application and I wanted to set a TabPane with tabs placed at left keeping the tab headers horizontal. I already found how to place the tabs at left, but after many searches I didn't succeed to set the headers in the right alignment. They still vertical and difficult to read.

How could I fixed that?

Answer

noxygenx picture noxygenx · Sep 13, 2013

You can use CSS to customize the tabs and tab labels:

.tab *.tab-label {
    -fx-rotate: 90;
}

.tab {
    -fx-padding: 3em 0.5em 3em 0.5em;
}