Setting a Description for Image Icons - Java 2D Graphics

Java examples for 2D Graphics:Image

Description

Setting a Description for Image Icons

Demo Code

import javax.swing.ImageIcon;

public class Main {

  public static void main(String[] argv) {
    ImageIcon icon = new ImageIcon("image.gif");
    icon.setDescription("Description of Image");
  }/*from   w  w  w .  j a v a2 s .c om*/
}

Related Tutorials