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 Destroying an Applet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Destroying an Applet ?" Watch "Destroying an Applet ?" New topic
Author

Destroying an Applet ?

Waqas Tariq
Greenhorn

Joined: Nov 15, 2007
Posts: 17
hello,

Scenario:
I have an applet running on HTML page. The applet execution in the method is in a loop. So, applet loads in windows processes list and doestn't stop working even , after the browser has been closed.

Problem:
Tell me any javascript function, which i call and applet execution is stopped/destroyed.

Best Regards,
Waqas Tariq Dar
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41133
    
  45
You should put code in the "stop" method that causes the loop in the start method to terminate. And, of course, the start method should not be long-running; it should terminate quickly. If you need to keep code running, start a thread.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Destroying an Applet ?
 
Similar Threads
Console Ouput in Applet.
Start:applet not initialized Error
does a JTextArea need some event listener?
method calls
Applet works fine in my Eclipse IDE, but doesn't work outside of Eclipse