我建议你查一查有关Applet类的声明,或者是<applet>的属性,或许在其中你可以得到答案

解决方案 »

  1.   

    要在APPLET中实现还是在html中直接实现
      

  2.   

    在按钮的actionPerformed事件里写上下面的代码
    this.getAppletContext().showDocument(new java.net.URL("2.htm"),"_blank");
      

  3.   

    楼上的兄弟,我试过了,就是这个:
    this.getAppletContext().showDocument(new java.net.URL("2.htm"),"_blank");
    出错信息是:2.htm不是协议!!
      

  4.   

    我试成功过!
    一个页面(html)包含两个框架(Frame),每个FRAME是个html(applet),
    你在例外的页面中调用显示另为的页面的话,
    this.getAppletContext().showDocument(new java.net.URL("2.htm"),"是另一个框架的名称就行拉");
      

  5.   

    URL url = getCodeBase();
        try
        {
            getAppletContext().showDocument(new URL(url + "RealReg.htm"), "right");
        }
        catch(MalformedURLException e1)
        {
        getAppletContext().showStatus("Error connecting to URL");
        }