To display an HTML file using applet context

import java.awt.*;
import java.applet.*;
import java.net.*;
/*
   <applet code="ACDemo" width=400 height=100>
   </applet>
 */
public class ACDemo extends Applet
{
    public void start()
    {
        AppletContext ac=getAppletContext();
        URL url=getCodeBase();
        try
        {
            ac.showDocument(new URL(url+"Test.html"));
        }
        catch(MalformedURLException e)
        {
            showStatus("URL not found");
        }
    }
}

Top