When many objects are added to it, the following happens: 
How to make it so that the objects could not expand it, and when there is not enough space, will ScrollBar appear or how can it be there and then can it be scrolled further?
Let there be a FlowPane with fx:id="myFlowPane" .
<ScrollPane fx:id="myScrollPane"/> line <ScrollPane fx:id="myScrollPane"/> into the markup file (as a child of the root element).
In the controller add field @FXML ScrollPane myScrollPane; .
Add the string myScrollPane.setContent(myFlowPane); controller's initialize() method myScrollPane.setContent(myFlowPane); . Here you can customize your ScrollPane .
Source: https://ru.stackoverflow.com/questions/555347/
All Articles