I have a JavaFX TabPane in which I add new tabs dynamically when I click on a tree node.
tabPane.getTabs().add(tab);
tabPane.getSelectionModel().select(tab);
Can you tell me how I can open a new tab and place it always first before the other tabs.