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?
System.Exit(0)
Try to remove java applet code by javascript. Example your html:
Click me
your javascript code:
function clickButton(){ var SS = document.getElementById("appletCode"); SS.innerHTML = ""; }