I want to add picture to every window that this code creates.
import java.util.Random;
import javax.swing.JFrame;
public class what {
public static void main(String[] args) {
Random ran = new Random();
while(true) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setName("" +ran.nextLong());
frame.setBounds(ran.nextInt(700), ran.nextInt(890) + 10, ran.nextInt(700), ran.nextInt(700));
JFrame frame1 = new JFrame();
frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame1.setVisible(true);
frame1.setName("" + ran.nextLong());
frame1.setBounds(ran.nextInt(700), ran.nextInt(890) + 10, ran.nextInt(700), ran.nextInt(700));
}
}
}