u can't do to close a Applet . 

解决方案 »

  1.   

    程序中要我关闭一个APPLET,我该怎么去实现啊,高手………
      

  2.   

    利用时间监听机制。
    在定义了Frame的对象aFrame后,在加上aFrame.addWindowListener(new WL());
    另外还要实现接口WindowListener,如
    class MyWindowListener extends WindowAdapter {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
      }
    }
    可以让他作为一个内部类
      

  3.   

    哦,有一个地方写错了
    class MyWindowListener extends WindowAdapter
    改为
    class WL extends WindowAdapter
      

  4.   

    但是APPLET不是从WINDOWS中继承下来得啊。
    兄弟你说的方法不知道可以不?
      

  5.   

    There is a button in the applet,
    if you push this button ,this the applet will be closed .
    how can I do that?