Hi, if your getting an error with drawOval then I would try drawRect();
In my opinion the while(true) and repaint(); should be in the run(); method since you should create a Thread and implement the Runnable interface.
When you call repaint in Java it automatically calls another method called update(); You should implement your own update method in your code like
public void update()
{
paint(page);
}
To reduce flicker. I hope this helps you some.
Reputation Points: 17
Solved Threads: 8
Junior Poster in Training
Offline 66 posts
since Aug 2004