posted 21 years ago
Took me a while to realize what you meant by it draws on the previous screen. You mwan the screen with the name of your MIDlet, that it doesn't clear that out before drawing your rectangle.
I had had that problem when I first created a canvas, then I realized that for the Canvas, you need to clear the screen with code like this
Now that setColor, you want to change the numbers to whatever color you want the background to be. It fills in a rectangle that is the size of the screen.
Mark