It is very simple program and i have tried my best but the JPanel doesn\'t come up with a background image. I just want a simple background image on my panel.
Here is my
Don't use a JPanel. Just use a JLabel with an Icon then you don't need custom code.
See Background Panel for more information as well as a solution that will paint the image on a JPanel with 3 different painting options: