I have a Label inside a ScrollPane. I am updating the label in a loop (In another thread). How can I update the ScrollPane so it scrolls down (not sideways, this will be done manually) if the user doesnt hold it at a position? Is there a setter for it?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
@Math thanks , that worked!
And I solved the problem "must be looking at the tab" with this part of code
To scroll the scroll pane to the bottom completely, set its
vvalue
property to1.0
:Note this may not work when called after resizing the scroll pane's content.
In such a case, if delaying the call via
Platform.runLater()
doesn't fix the problem, consider setting the property's value in response to the contentheight
property invalidation event:To set the ScrollPane to the bottom automatically set the
vvalue
of the ScrollPane element, like this:If you are using either HBox or VBox within the ScrollPane, try the following:
This works in my code:
in my case scrollPane contains mainGrid
This should do the trick: