本帖最后由 nbda1121440 于 2010-10-23 20:16:53 编辑

解决方案 »

  1.   

    这个方法是用来释放程序申请的资源的。不应该用来和用户交互的,你就不该指望在这个方法里向窗口输出东西。
    void com.security.dpi.Simple.destroy()
    Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. The stop method will always be called before destroy. A subclass of Applet should override this method if it has any operation that it wants to perform before it is destroyed. For example, an applet with threads would use the init method to create the threads and the destroy method to kill them. The implementation of this method provided by the Applet class does nothing.