This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "How to dispose an Applet" Watch "How to dispose an Applet" New topic
Author

How to dispose an Applet

Pankaj Verma
Greenhorn

Joined: Oct 30, 2003
Posts: 9
Hi,

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.
Pankaj
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
Greenhorn

Joined: Oct 30, 2003
Posts: 9
But I want to close the first applet and show second applet.
How to dispose the first applet.
 
jQuery in Action, 2nd edition
 
subject: How to dispose an Applet