How can I set the unit increment for a scroll pane in JavaFX?
java, javafx, javafx-2, scrollpane
Solution
Technically, you should be able to get to it using the `.lookup("scrollbar")` method after the skin is initialized (if the scrollbar is visible). I don't like that answer though.
I don't think you're missing anything according to this bug ticket:
- How to access to ScrollBar component in ScrollPane control ? https://bugs.openjdk.java.net/browse/JDK-8091864
I'd encourage you to jump on that, present your use case, vote, and see if you can get some sort of response in the future.
Problem
The ScrollBar class in JavaFX contains a property for setting the unit increment, which is what I'm after - however I can't find how to get at this ScrollBar, or set the unit increment some other way from the ScrollPane class! I presume I must be missing something obvious - how do I achieve this?