It's not clear why you would want to do this (you should really only deal with the data, not the implementation details of how the scroll bar is painted).
It would seem reasonable to assume the following relationships hold, though:
value / ( max - min ) = position / (width - visibleWidth)
visibleAmount / (max - min) = visibleWidth / width
where position, visibleWidth, and width are in graphical units (pixels), and min, max, value, and visibleAmount refer to the properties defined by ScrollBar.
Some simple algebra should give you the value in terms of quantities you either know or can query the scrollbar for.
listView inside a horizontal scrollBar is correct, but
Vertical in scrollBar not do it correctly.
I did the following test for scrollBar vertical
scrollbarVertical.setValue(70); <-- no set correct
internally work with values between 0 and 1 and after these settings the setValue no set correct thumb.
is a bug or lack some understanding of this implementation?
It's seems like as my problem How to auto-scroll to the end in WebView ? ==> https://forums.oracle.com/thread/2595743
On the WebView, I can't set value for scrollbar in the webview.