Hello all,
I'm very new to javafx. I am trying to add a horizontal scroll bar to my stage. I've got a very wide picture and I'd like to show only part of it and allow the user to scroll it. How is it done?
Hello all,
I'm very new to javafx. I am trying to add a horizontal scroll bar to my stage. I've got a very wide picture and I'd like to show only part of it and allow the user to scroll it. How is it done?
You can try to bind value
of scrollbar to translateX (or Y) of image. And of course set min and max of scrollbar to 0, image.width (.height)