Okay so, I have added an image to a label using this code.
JLabel image = new JLabel();
image.setIcon(new ImageIcon("path here" ));
//image.setLayout( new BorderLayout() );
And added the label to a panel that I already have
JPanel jp1=new JPanel(new FlowLayout());
jp1.add(image);
Note that jp1 also has alot of other buttons. So I simply want the simplest way to add the label "image" as a background of the JPanel "jp1", because with that code, the panel(jp1) sets the image and the buttons next to each others(according to the flowlayout), but I want the the label to be a background. I tried setBackground, but it only takes a color. How can I do that?