I am facing a poblem with an apllet I created.when the roll the vertical or the horizontal scroll bars of the page thatcontainig my applet,the applet does not repaint( ) causing the surface not being updated ,and theGUI components are left behind making what's to be called "turds".I tried to use a Thread to make a periodic repaint( ) but it does not work.Is there any way to make every thing get repainted correctly?????
first of all, you do have a paint mehtod in your classright?if you do, you can add the "repaint()" to yourEventListener. This way, each time you click on thearrow scrolling up, left, down, right, the appletcalls repaint().