Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.18 seconds.

  1. Replies
    15
    Views
    1,547

    [SOLVED] Re: Create A Countdown In Java

    There are several examples of using an ActionListener on a JButton as well as on a Timer in the link I gave you.

    Split your problem up into smaller pieces: Can you create a standalone program that...
  2. Replies
    15
    Views
    1,547

    [SOLVED] Re: Create A Countdown In Java

    In that case, you'll need *two* ActionListeners: one for the JButton, and one for the Timer. The JButton's ActionListener starts the Timer. The Timer's ActionListener updates the display.

    You...
  3. Replies
    15
    Views
    1,547

    [SOLVED] Re: Create A Countdown In Java

    You'll need at least 2 separate listeners: a MouseListener that triggers the event (starting the timer), and an ActionListener that gets triggered by the Timer when it fires.

    I would suggest...
  4. Replies
    15
    Views
    1,547

    [SOLVED] Re: Create A Countdown In Java

    What have you tried? How are you updating the score indicator?

    You might want to take a look at Swing Timers. More info here: Swing Timers - Tutorials - Static Void Games
Results 1 to 4 of 4