hi,
i need to display dfferant images in a single label .
here is the coding,

 import javax.swing.ImageIcon;
     if (ALBtbl1.getSelectedRow() == 0) {
                    picLbl1.setIcon(new ImageIcon("C:\\Documents and Settings\\kezia\\Desktop\\TMK.JPEG"));

the problem is that the image does not get displayed in the label.
please i need solution urgently.

thanks

  1. Is the setIcon being executed? (put a print starement just before it to confirm)
  2. Is the label big enough to display the icon?
  3. Is the ImageIcon being read properly - new ImageIcon throws no exceptions and issues no errors if it fails, it just gives you anempty image. Try printing the width and height of the new ImageIcon to confirm.