Hi Jeannie, The picture flashes because Java has a method called update that erases the screen and then calls paint. This is the method that actually gets called when you call repaint. To change the behavior you can override the Update method and make it only call paint.
You get good luck from rubbing the belly of a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!