JButtons on top of an image

I have an image I use as a background in a JFrame (by putting it in a JLabel). I have a pair of JButtons I want to add on top of that image.
I just can’t find a way to make Components stack. Anyone have an idea?
I tried checking out JLayeredPane but it was quite confusing and I couldn’t find any easy-to-understand explanation

you could overwrite the paint method of the container holding the buttons.

for instance, a JPanel with a BorderLayout :

@Override
public void paint(Graphics g)
{
  g.drawImage(myImg, 0, 0, getWidth(), getHeight(), null);
  super.paint(g);
}

Don’t do that. Your background should not be in a JLabel.

Instead, extend JPanel and override the paintComponent() method. Draw your background there, and then use that JPanel like you would any other JPanel. Add it to your JFrame, and then add your JButtons to the JPanel.

Recommended reading: https://docs.oracle.com/javase/tutorial/uiswing/painting/