Only one tab is visible at a time. The user selects the one using mouse/keyboard. Suppose, there are three tabs on TabPane and there is a button on first. When user press th
Try
tabPane.getSelectionModel().select(index);
or
tabPane.getSelectionModel().select(someTab);
tabPane.getSelectionModel().selectNext();
Or...