Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to click the button automatically?

890898Oct 20 2011 — edited Nov 9 2011
Hi,
I designed a button in my code to generate 10 circles in one time. It's okay to generate more circles if I click the button repeatedly.
Is it possible to design a button to generate circle automatically with duration and a button to pause it?
For example,
( 10 circles)--> (wait for 1 sec) -->(10 circles) --->(wait for 1 sec) ....

I tried Animation to do it, but it became too complicated.

Thank you for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 7 2011
Added on Oct 20 2011
6 comments
529 views