create a JPanel, set to BorderLayout (or whatever), then set the panel as the contentPane of the frame. Now add components to the panel, as you would the frame.
the swing FAQ (link on swing main page, above topics) has an example of a JPanel with background image - this is what you'd use for your contentPane
Joined: Mar 26, 2003
Actually i have a panel in the Frame, where i have to put the background image and also i have few swing controls(labels, combobox, textbox....). So if possible can somebody please give me some sample code or some related links.
Please help me ASAP.
Joined: Jun 09, 2003
> So if possible can somebody please give me some sample code
sample code of what?
the link shows you how to have a JPanel with a background image, all you then do is add components to the panel, as you would a normal JPanel.