Re: Graphics Problem



"Mary Wallker" <mary@xxxxxxxxxx> wrote in message
news:4321f82b_3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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.

- Oliver


.