FileDocCategorySizeDatePackage
ImageView.javaAPI DocExample527Sat Sep 09 20:33:12 BST 2000None

ImageView

public class ImageView extends Applet

Fields Summary
Image
picture
Constructors Summary
Methods Summary
public voidinit()

  
    try {
      URL u = new URL(this.getCodeBase(), this.getParameter("IMAGE"));
      this.picture = this.getImage(u);
      System.err.println(u);
    }
    catch (MalformedURLException e) {
      // shouldn't happen, the code base is never malformed
    }
   
  
public voidpaint(java.awt.Graphics g)

    g.drawImage(this.picture, 0, 0, this);