package my.test.app; import java.util.List; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ScrollPane; import javafx.scene.control.Tab; import javafx.scene.control.TabPane; import javafx.stage.Stage; public class TestApplication extends Application { public static void main(final String[] args) { Application.launch(TestApplication.class, args); } @Override public void start(final Stage stage) { final Button button = new Button("Test Button"); button.setMinWidth(600); button.setMinHeight(600); final Tab tab = new Tab("Test"); tab.setContent(button); final TabPane tabPane = new TabPane(); final List tabs = tabPane.getTabs(); tabs.add(tab); final ScrollPane scrollPane = new ScrollPane(); scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); scrollPane.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED); scrollPane.setNode(tabPane); final Scene scene = new Scene(scrollPane); stage.setScene(scene); stage.setVisible(true); } }