Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    Does it go away and a new one comes immediately?
    To keep the Timer from continuing to call the listener, stop or cancel it.
  2. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    Sorry, that's a message from the IDE, but it hides what the compiler error is. You need to try another way to get the compiler's error message.
  3. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    The code in post#5 shows a call to the JOptionPane method inside an if.



    if (count ==0){

    JOptionPane.showMessageDialog(null, "You loose",...
  4. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    What happened when you tried as in post#5?
  5. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    What happened when you used that code?
  6. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    What line of code is changing the value of the "timer"?

    ++ means to add 1
    -- means to subtract 1
  7. Thread: Swing TIMER

    by Norm
    Replies
    14
    Views
    927

    Re: Swing TIMER

    The Timer will call your listener code at the frequency/interval that the code sets.
    You can have that code do whatever you need done when it is called.

    If you want to see when the listener is...
Results 1 to 7 of 7