I need a tabbed bar with tabs on the left side, the text / graphics of the tabs should be horizontal
I did this on Scenebuilder a few months ago.
However, when I add additional tabs using Java code, the tabs are on the left side, but the graphic text is vertical, unlike tabs created using the scene builder.
In the attached image, the first two tabs are created using Scenebuilder, and they are in the correct orientation, the third is dynamically added using Java code.
Tab studentAdmission = new Tab();
studentAdmission.setContent((Parent)new FXMLLoader(getClass().getResource("Customer_View.fxml")).load());
studentAdmission.setGraphic(new Label("Student Admission"));
mainTab.getTabs().add(studentAdmission);

Can someone tell me why this tab does not rotate like the other.
source
share