Paint « Component « Java Swing Q&A





1. Painting background in JComponent    coderanch.com

2. GUI Painting Background Problem    forums.oracle.com

In the future, Swing related questions should be posted in the Swing forum. But there is no need to repost, you can read the Swing tutorial on [Custom Painting|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for examples on the proper way to do this. A few things you are doing wrong: a) don't override a JFrame b) don't override update() c) don't override paint()