ImageIcon: setDescription(String description) : ImageIcon « javax.swing « Java by API






ImageIcon: setDescription(String description)

  


import javax.swing.ImageIcon;

public class Main {
  public static void main(String[] argv) throws Exception {

    ImageIcon icon = new ImageIcon("image.gif");
    icon.setDescription("Description of Image");
  }
}

   
    
  








Related examples in the same category

1.new ImageIcon(String filename)
2.ImageIcon: getImage()