I am very new to Java. I successfully added a background image on the Panel but I can't create my JButton image on top of my background image. Can someone help advise. Thanks.
ImageIcon piano = new ImageIcon("src/img/piano_backgrd.png"); JLabel backlabel = new JLabel(piano); panel.add(backlabel, new Integer(Integer.MIN_VALUE)); backlabel.setBounds(0, 0, piano.getIconWidth(), piano.getIconHeight()); JButton volup = new JButton(new ImageIcon("src/img/volup.png")); volup.setLocation(10, 0); panel.add(volup);