Refresh the size of the slider of a scroll bar
I have a GUI with an OpenGL-Canvas and some JScrollBars.
When the scrollbars are moved by the user the rendered mesh inside the OpenGL-Canvas is moved.
This all works quite nicely, but for some reason the scroll bars always have sliders of minimum size.
I thought that when I set minimum and maximum values for the scrollbars the sliders would adapt their sizes accordingly but they dont.
What should I do to have them update their size correctly?
Thank you very much.