FileDocCategorySizeDatePackage
SwingSet2Applet.javaAPI DocSun JDK 1.4.2 Example2844Thu May 12 00:35:28 BST 2005None

SwingSet2Applet

public class SwingSet2Applet extends JApplet
version
1.7 01/23/03
author
Jeff Dinkins

Fields Summary
Constructors Summary
Methods Summary
public java.net.URLgetURL(java.lang.String filename)

        URL codeBase = this.getCodeBase();
        URL url = null;
	
        try {
            url = new URL(codeBase, filename);
	    System.out.println(url);
        } catch (java.net.MalformedURLException e) {
            System.out.println("Error: badly specified URL");
            return null;
        }

        return url;
    
public voidinit()

        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(new SwingSet2(this), BorderLayout.CENTER);