I'm trying to load a different image into a scrollpane whenever the user clicks a button.
The images have different sizes.
How do I get my canvas to resize to the actual size of the image ?
The scrollbars on the scrollpane remains the same, so the larger image gets cropped to the size of the smaller image.
Thanks in advance for responding to this post.