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

Discussion in 'Java' started by snehapshinde@gmail.com, Nov 5, 2008.

  1. Guest

    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!
    , Nov 5, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bart Simpson
    Replies:
    5
    Views:
    624
    logistix at cathoderaymission.net
    Oct 13, 2003
  2. kj7ny
    Replies:
    3
    Views:
    990
    fynali
    Jul 10, 2007
  3. Steve

    read scheduled tasks

    Steve, Aug 13, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    4,929
    Alexey Smirnov
    Aug 13, 2007
  4. thj

    Start/tract scheduled tasks

    thj, Aug 11, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    418
  5. PhilV

    Using Web Services to create Scheduled Tasks

    PhilV, Sep 26, 2007, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    160
Loading...

Share This Page