> Never mind, I found out how to do it, I had forgotten to cast the > TabDataRenderer to a ButtonDataRenderer. > > However, the text is not displayed correctly, I mean it is centered whereas > I want it to be left aligned. > I guess I have to write by ButtonDataRenderer.
I'd suggest creating a new instance of ButtonDataRenderer and setting the horizontalAlignment style on it. Then call TabPane#setTabDataRenderer() with the new instance.
