wood burning stoves 2.0*
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
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to dispose an Applet