Search:

Type: Posts; User: copeg

Search: Search took 0.07 seconds.

  1. Thread: Swing Timers

    by copeg
    Replies
    5
    Views
    2,661

    Re: Swing Timers

    Did you try my original suggestion? Using Thread.sleep in this fashion means you are locking up the program for 5 seconds (the actionPerformed occurs in the Event Dispatch Thread (EDT) - and because...
  2. Thread: Swing Timers

    by copeg
    Replies
    5
    Views
    2,661

    Re: Swing Timers

    You should initiate the text box prior to starting the TimeListener, otherwise nothing will happen until after you've listened for the specified time. So:


    int a =...
Results 1 to 2 of 2