posted 22 years ago
Manu,
The way I would do it is use the createImage( x, y ) method in Component to create a "back buffer" image ( normally used in double buffering ) that you do all the drawing to in your paint method. Then, at the end of the paint method, you simply do a g.drawImage( buffer, 0, 0, this ) to draw to the screen. You would also have a reference to the image being shown on the screen.
HTH,
-Nate
[This message has been edited by Nathan Pruett (edited April 12, 2001).]
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.