File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes How to dispose an Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to dispose an Applet" Watch "How to dispose an Applet" New topic

How to dispose an Applet

Pankaj Verma

Joined: Oct 30, 2003
Posts: 9

I want to dispose an applet after cerain period of time lets say after 3 min. My applet is nothing but a soft phone dialer if no one dial any number from soft dialer within 3 min i want to dispose that soft dialer applet and create another soft phone with the number already stored in the database.

Thanks in advance.
Arto Pastinen
Ranch Hand

Joined: Dec 13, 2002
Posts: 79
Sleep main thread for 3 minutes after initialization.

If some events happends, wake thread and do job, and then put thread to sleep again.

I something is not happened during 3 minutes, thread just clean applet.
[ March 04, 2005: Message edited by: Arto Pastinen ]
Pankaj Verma

Joined: Oct 30, 2003
Posts: 9
But I want to close the first applet and show second applet.
How to dispose the first applet.
I agree. Here's the link:
subject: How to dispose an Applet
It's not a secret anymore!