I'm doing a simulator and I'm trying to put an image in a JLabel and then that JLabel add it to a JFrame with a background image, the frame with the background image is in another class, the problem is that when I execute the program does not appear the image in the JFrame this is the code where I added the JLabel
public static void CreaTaquillero(JLabel taquilleros, int x) {
ventanasim.setLayout(null);
Image img= new
ImageIcon("C:\Users\Luis\Desktop\icon.png").getImage();
ImageIcon img2=new ImageIcon(img.getScaledInstance(100, 84,
Image.SCALE_SMOOTH));
taquilleros.setIcon(img2);
taquilleros.setBounds(1100,10,30,30);
taquilleros.setSize(taquilleros.getPreferredSize());
ventanasim.add(taquilleros);
}