> The main problem I have is that the whole rectangle that the
> image occupies is
> erased on the container and the background shows through.
I'm not quite sure what you mean here. Do you mean that your image is not
transparent in the appropriate areas? If so, are you using a transparent
GIF? From your code it seems that your background never gets refreshed, so
as you move the image, the background gets erased. If that is your problem,
you need to repaint the background to your offscreen buffer as well as the
image. In fact, you should repaint the entire screen to the offscreen
buffer every refresh.
You are right in that what you are trying to do is easy. I'm just not sure
what the problem is.
James
P.S. For efficiencies sake, you shouldn't do all the off-screen buffer work
in the paint() method; do it in another thread.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".