• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing an applet in Firefox

 
Pranay Narotam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic