Java examples for 2D Graphics:Image
Setting a Description for Image Icons
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*/ }