FileDocCategorySizeDatePackage
MyApplet.javaAPI DocExample562Mon May 01 14:42:02 BST 2000None

MyApplet

public class MyApplet extends JApplet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

    try {
      // absolute URL
      URL monaURL =
          new URL( "http://myserver/images/mona_lisa.gif");
      Image monaImage = getImage( monaURL );
      // applet resource URL
      URL daffyURL =
          getClass(  ).getResource("cartoons/images/daffy.gif");
      Image daffyDuckImage = getImage( daffyURL );
    }
    catch ( MalformedURLException e ) {
        // unintelligable url
    }