I'd like to set the background of a JFrame using a png or jpg file that contains a graphics image, rather than just setting the background colour. I've tried creating a panel, painting the image on the panel and setting it as the frames contentpane but this disturbs the layout when positioned other components on the pane.
Any suggestions would be welcome - I'm sure there must be something obvious that I'm missing (been away from
Java for 2 years, heaven forbid).