import javafx.application.Application; import javafx.geometry.Insets; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.scene.layout.VBox; public class App extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { TabPane tabPane = new TabPane(); Tab tab1 = new Tab("Nevek"); Tab tab2 = new Tab("Csoportok"); Tab tab3 = new Tab("Tárgyak"); tabPane.getTabs().add(tab1); tabPane.getTabs().add(tab2); tabPane.getTabs().add(tab3); VBox vbox = new VBox(tabPane); vbox.setPadding(new Insets(10, 10, 10, 10)); vbox.setSpacing(10); Scene scene = new Scene(vbox, 300, 250); primaryStage.setScene(scene); primaryStage.setTitle("Valami"); primaryStage.show(); } }