This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
 
Arthur, where are your pants? Check under this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic