Article ID: 189167
Article Last Modified on 11/14/2005
import java.applet.Applet;
import java.awt.*;
public class testApp extends Applet
{
Button b1;
public void init ()
{
b1 = new Button("Press");
add("Center", b1);
}
public boolean action(Event ev, Object arg)
{
if (arg.equals("Press"))
{
try
{
System.out.println("Exiting now.");
System.exit(0);
}
catch (Exception ex)
{
if (ex instanceof SecurityException)
System.out.println("Cannot exit browser");
else
ex.printStackTrace();
}
}
return true;
}
}
193877 HOWTO: Make your Java Code Trusted in Internet Explorer
Additional query words: exit destroy internet explorer kbDSupport
Keywords: kbinfo kbcode kbarttypeinf KB189167