You add the JPanel to a JFrame.
Type: Posts; User: ChristopherLowe
You add the JPanel to a JFrame.
I wrote an article on Image processing a few months ago. It may be worth while checking out.
This is a stripped down version of the JPanel
import java.awt.Graphics;
import...
It looks correct to me. What is the error message?