a simpler way ?? theres a more basic way if u dont understand wt clearRect() does.. u could simply clear the whole screen.. and then repaint. but its esseffiecient and causes the applet to do more work then it needs bt w/e its 2 lines
***
the MAIN differance between clearRect and fillRect is that clearRect will use the color of ur bkBround while fill rect will only use the color u tell it to use
***
CODE
page.setColor(Color.white);
page.fillRect(0, 0, this.size().width,this.size().height);
//and then the rest of ur code page.setColor(Color.black)....
this works it would be smarter to use clearRect() then fillRect()
so u could use
CODE
page.fillClear(0, 0, this.size().width,this.size().height);
//and then the rest of ur code page.setColor(Color.black)....
anyway i hope this helped
there is one more way but its more complicated u have to override the method update().. (which is called by repaint(). so if ur interested look into it