g'day, i have a problem when using ScrollPane in my applet i am using a scrollPane of size (400,400) to display an image that is on a canvas of size (900,600). I have changed the canvases' update method to stop the canvas from clearing before it redraws and am using a double buffering technique to stop the canvas from drawing until the image is finished, but none of this has helped to stop the flickering that occurs every time i move one of the scrollpanes slider bars. if anyone has any ideas, please let me know. Thanx for any help u can offer p.s. i don't want to have to use swing components, unless i have to.
From your post, I think you're looking in the wrong place -- it's not the canvas that has to be careful with it's <code>update()</code>, it's the <code>ScrollPane</code>. Subclass that and override <code>update()</code> there.
<code>update()</code> forwards the call to any children, so you probably actually need new updates for both the <code>Canvas</code> and the <code>ScrollPane</code>. Hope it helps, man.