stick figure movements

how do i get a stick figure to move left and right across an applet continuosly till the user clicks on the close button?
Who is Participating?
tonusConnect With a Mentor Commented:
         You can do this by use of  a Thread or by use of  timer class. Create a seperate Thread in the applet class which contineously draw the stick figure in at x,y position till the flag becomes true. Assign true to this flag on click of the button.
For an example,
look at the Java Tutorial at the Sun site.
Look for the juggling "Duke" program.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.