I have an applet that is running on Firefox. The applet consist of an EXIT METHOD
that closes the program. This function works perfectly, but in Firefox, when there are
multiple tabs open, The EXIT METHOD seems to close Firefox itself.
Is there a way to only close the tab that the applet is using?
This sounds a bit strange. What exactly does this exit method do? Applets are not applications that can be closed; they'll be terminated if the web page they're part of is closed. Is that what you mean?
Hi, sorry, I am a little new to applets. I have an application, and i am using an applet to run the
application in a browser. The application consist of an EXIT menuItem. But when i run my application
in a browser, the EXIT menuItem closes the whole browser, I would like it to close the tab that is running
the application or just the application itself. I hope this helps
Joined: Mar 22, 2005
What do you mean by "application" - is that something outside of the applet? A window the applet is opening? And again: What -exactly- is the exit item doing - which Java code is it executing? Also, is this a signed applet? I don't think an unsigned applet can do anything drastic with the browser, like closing it.
Joined: Oct 08, 2008
This is a signed applet.
The EXIT menuItem is used to close the application
this is the code for my applet
The MainDoc method is my main application. I hope this helps you.