Re: Graphics Problem
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Fri, 09 Sep 2005 21:14:36 GMT
"Mary Wallker" <mary@xxxxxxxxxx> wrote in message
> Hi, Thanks for your reply. I have enclosed a simple program which
> displays this problem (I had actually already posted it in my original
> post but I'm glad to post it again as there was a slight bug in the
> original one).
Okay, this one works. So like I said, the way to solve your problem is
to do double buffering. Go to
http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html for a
tutorial on it.
As for the sluggishness of your code, I suspect it's due to the call to
sleep(5) inside the while loop.