applet = new ErrorApplet("Error loading applet");
applet = new ErrorApplet(Messages.getString ("Main.ErrorApplet"));
  static Applet createApplet(AppletTag tag)  {    Applet applet = null;    try      {        ClassLoader loader = getClassLoader(tag.prependCodeBase(""),                                            tag.getArchives());        String code = tag.getCode();        if (code.endsWith(".class"))          code = code.substring(0, code.length() - 6).replace('/', '.');        Class c = loader.loadClass(code);        applet = (Applet) c.newInstance();      }    catch (Exception e)      {        e.printStackTrace();      }    if (applet == null)      applet = new ErrorApplet("Error loading applet");    return applet;  }