JavaFX 8 Tutorial 45 - ScrollPane



The code written in the tutorial is :

        ScrollPane sp = new ScrollPane(table);
        //sp.setContent(table);
        sp.setPrefSize(600, 200);
        sp.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
        sp.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
        sp.setFitToHeight(true);
        sp.setHmax(3);
        sp.setHvalue(0);
        sp.setDisable(false);
       
        layout.setRight(sp);
        BorderPane.setMargin(sp, new Insets(0, 0, 10, 10));

Comments

Popular posts from this blog

JavaFX 8 Tutorial 64 Spring Boot CRUD with FXML

JavaFX 8 Tutorial 62 - Jasper Report

JavaFX 8 Tutorial 51 - Export Database to Excel