Bug 16687 - Timer restart doesn't stop the the timer and clear out pending ActionEvents
Summary: Timer restart doesn't stop the the timer and clear out pending ActionEvents
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: pre-0.18
Assignee: Kim Ho
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-23 13:55 UTC by Kim Ho
Modified: 2005-10-16 01:53 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Test case. (326 bytes, text/plain)
2004-07-23 13:55 UTC, Kim Ho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Ho 2004-07-23 13:55:07 UTC
Attached a test case. (Move the mouse over the button and watch it fire lots of
ActionEvents as the Timer gets restarted.)

A restart of the Timer should cause it to wait the full length of the delay and
fire one ActionEvent.

Working on a patch.
Comment 1 Kim Ho 2004-07-23 13:55:51 UTC
Created attachment 6809 [details]
Test case.
Comment 2 Kim Ho 2004-07-29 16:11:11 UTC
fixed on java-gui-branch