I have a Jscrollpane, holding a Jpanel on which I draw. Now, I have made buttons to zoom in and out. They will simply change the value of variables that hold the size of my Jpanel and the drawing on my Jpanel, and then resize the panel and redraw.
When I zoom in, the scrollbars don't update itself, unless I grab a border of my Jframe, and resize the window. How do I get the scrollbars of the Jscrollpane to update?