File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Closing an applet in Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Closing an applet in Firefox" Watch "Closing an applet in Firefox" New topic
Author

Closing an applet in Firefox

Pranay Narotam
Greenhorn

Joined: Oct 08, 2008
Posts: 23
Hi all

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?

Thanks

Pranay


I AM A HUMAN BEING
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42916
    
  68
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?
Pranay Narotam
Greenhorn

Joined: Oct 08, 2008
Posts: 23
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

Thanks

Pranay
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42916
    
  68
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.
Pranay Narotam
Greenhorn

Joined: Oct 08, 2008
Posts: 23
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.

Thanks

Pranay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Closing an applet in Firefox