How to close java Applet through code

后端 未结 4 1968
失恋的感觉
失恋的感觉 2021-01-22 02:52

I am developing a java applet. I want it to be closed by the code. I have used System.Exit(0) but it is not working. Is there any other method to achieve this?

4条回答
  •  感动是毒
    2021-01-22 03:14

    As said above,exiting applet is simple by adding System.exit(0) in if(condition) for which you want to close the applet.Though I am describing of applet viewer.But,it certainly works fine.

提交回复
热议问题