import javax.swing.*;
import java.awt.*;
public class sample
{
public static final int width=500;
public static final int height=500;
public static void main(String[] args)
{
JFrame mywindow=new JFrame();
myWindow.setSize(Width, height);
JLabel myLabel= new JLabel ("How do i insert picture in this window? I want to create a photo gallery on this window..can you help me generate the code?pls thanks!");
myWindow.getContentPane().add(myLabel);
myWindow.setVisible(true);
}
}