FileDocCategorySizeDatePackage
Photo.javaAPI DocExample588Tue Dec 12 18:59:10 GMT 2000None

Photo

public class Photo extends Object

Fields Summary
public String
filename
public String
caption
public int
width
public int
height
public ImageIcon
icon
Constructors Summary
public Photo(String filename, String caption, int w, int h)

        this.filename = filename;
        if (caption == null)
            this.caption = filename;
        else
            this.caption = caption;
        width = w;
        height = h;
        icon = null;
    
Methods Summary
public javax.swing.ImageIcongetIcon()

        return icon;
    
public voidsetIcon(javax.swing.ImageIcon i)

        icon = i;