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
Post a Comment