I cannot find a way to align tabs in a JavaFX TabPane. Let's say we take the following example:
TabPane tabPane = new TabPane();
Tab tab1 = new Tab();
Tab tab2 = new Tab();
tabPane.add(tab1);
tabPane.add(tab2);
How can I align tab1 to the left and tab2 to the right of the tabPane? It does not matter to me if this is done in Java code or in CSS.