How to cancel one of the scheduled tasks in j2me using Timer

S

snehapshinde

We can create reminders by creating Timer object and calling its
schedule() method.
The user can set many reminders. If the user choose to remove any
reminder then, there is a method called cancel() of Timer class. But
this method should be called by the corresponding object . How can I
reference the corresponding object. Should I store the created objects
& then retrieve it whenever I want to call cancel() method. But in my
program I am using same object name for creating all reminders, then
how can I differentiate the objects?
Plz help me regarding this!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top