This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.