Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How to kill an applet(VERY URGENT)

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have project in which I have different buttons on HTML. When user clicks on any button it will call same applet with different parameters to display different GUI's. It is working fine with IE. But in Netscape 4.7 when I click on any button on HTML it will call an applet. After that if I click on other button it will call same applet with different parameter values from HTML.BUT I SAW IN JAVA CONSOLE THAT IT DOESN'T KILL THE PREVIOUS APPLET. So ultimately, if click that five buttons one by one, Resource free memory goes down. HOW I CAN KILL APPLET IN THIS PARTICULAR NETSCAPE OR THIS KIND OF BROWSERS???
P.S.: I am using Stop and Destroy method. In Stop I closed socket. And In Destroy I don't do anything.
Thanks,
Angela
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should not try to destroy the applet yourself, that is up to the browser. What you should be ding is just redrawing the GUI inside the applet... not launching a new applet with new parameters.

-Nate
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic