repainting panels

From: Chris Lawson (someone_at_microsoft.com)
Date: 02/09/04


Date: Mon, 09 Feb 2004 00:39:57 GMT

Hi,

I am writing a java program using a combinatin of panels ... when the
content of a panel is updated, by calling the repaint() method, the
panel that is repainted gets junk in the background which is an image
of the whole window.

This disappers if there is another repaint (i.e. call the repaint()
manually or the window is resized).

Does anybody know why this occurs and possibly how to fix it?

Thanks
Chris