i want to add an Image as a background to a JFrame but not like
this.setContentPane(new JLabel(new IamgeIcon("path of image file"));
When i use the above code line i can not see my other components added to the same JFrame. I want to set an image as a background as we see in the html pages where body has a background image and we see other components like buttons and textboxes over it. Can anyone please show me how to do that? And I want to attach 2 more panels to same JFrame.Please attach the image of your code output.