public class myApplet extends Applet {
public void init() {
this.setSize(600,600);
}
}

解决方案 »

  1.   

    没有用
    在网页中 Applet 的大小是由 Html 参数决定的
    只能通过修改 Html 参数来改变 Applet 的大小
      

  2.   

    终于等到了,关于改变applet大小问题,经过多次试验,我还是失败,如果在html中传递参数可以的话,那么该怎么实现呢?
      

  3.   

    <applet
      codebase = "."
      code     = "signedapplet.TestApplet.class"
      archive = "SignedApplet.jar"
      name     = "TestApplet"
      width    = "400"
      height   = "300"
      hspace   = "0"
      vspace   = "0"
      align    = "middle"
    >"修改width和height参数
      

  4.   

    public class myApplet extends Applet {
    public void init() {
    resize(600,600);
    }
    }
    然后用appletviewer看就没问题了