Hi,
Try this one out , it seems u didnt give the relative path to the
image.
1) The first argument to the ImageIcon constructor specifies the file
to load, relative to the directory containing the application's class
file.
2) The second argument provides a description of the icon.
ImageIcon icon = new ImageIcon("images/middle.gif",
"Inam Reyi ");
label1 = new JLabel("some text", icon, JLabel.CENTER);
I hope this solves ur prob.