Search:

Type: Posts; User: jack_nutt

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,788

    Re: Timer expires invoke method

    I have tried this on Eclipse and Netbeans IDE .
    I got this :


    flag being set
    timer was set
    this should be truetrue
    this should be falsefalse
    method
    timer cleared
  2. Replies
    7
    Views
    1,788

    Re: Timer expires invoke method

    the output is like:


    flag being set
    flag being set
    flag being set


    this body:
  3. Replies
    7
    Views
    1,788

    Re: Timer expires invoke method

    the logic

    if(b.flag)
    {System.out.println("timer was set");
    System.out.println("this should be true"+b.flag);
    b.flag=false;
    System.out.println("this should be false"+b.flag);...
  4. Replies
    7
    Views
    1,788

    Timer expires invoke method

    Hi ,
    i want to set a timer for 5 secs and once the timer wakes up i want to invoke a method . i am checking a boolean flag of class b,once set i want to invoke the method . but the logic is not...
Results 1 to 4 of 4