JSP and Applets
When we Open an applet in a browser , the applet is getting embedded in the browser and is appearing inside the browser . but how to bring this applet in a seperate window , ie browser must be in the background and this applet window must appear isolated . The applet must get closed when i close the browser !
Any Ideas Please !
[343 byte] By [
IT_Skilla] at [2007-9-29 19:59:36]

OMG...
a) use JavaScript to open a new window , display your html with your applet tag in there. It will be in a separate window. It will be closed when the browser is closed.
b) in your applet, create a Frame or JFrame. it will show up in a separate window. It will close when the browser is closed.
public class SecondApplet extends Applet {
public void init() {
System.out.println("SecondApplet(): init()");
}
public void start() {
System.out.println("SecondApplet(): start()");
Frame frame = new Frame("Test");
frame.setSize(320,200);
frame.show();
}
public void stop() {
System.out.println("SecondApplet(): stop()");
}
public void destroy() {
System.out.println("SecondApplet(): destroy()");
}
}
you should really *really* buy some books and read them...