package FinalTest;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class Imageshow extends JFrame {
JPanel jp=new JPanel();
public Imageshow()
{
setSize(400,500);
setTitle(“dhi”);
setVisible(true);
add(jp);
JLabel jl=new JLabel(new ImageIcon(“F:/111.jpeg”));
jp.add(jl);
}
public static void main(String[] args) {
new Imageshow();
}
}