通过AppletContext通讯getAppletContext()

解决方案 »

  1.   

    AppletContext aplctx=this.getAppletContext();
      try{
          String prefix=url.getProtocol()+"://";
          String newUrl=prefix+url.getHost()+url.getFile()+"help.html";
          aplctx.showDocument(new URL(newUrl),"_blank");
          }catch(MalformedURLException ee){System.out.println("Home page error!");}
      }
    记得给分啊!