If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Button press loop

I am new to java and was wondering is there a way in which a java program can simulate button press such as x into a text box and loop every 2 minutes.

All help welcomed.

Thanks.

buttons support a method doClick() that programmatically simulates clicks on a button.

you may wish, however, to use a java.awt.Timer object, which emits window events at a specified interval to all interested listeners.. all you would have to do is configure a Timer than emits an ActionEvent to certain buttonhandlers every 60 seconds...

note hough, that enetering an X into a text box, and pressing a button, are 2 very different things...