• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

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?
0
heuer
Asked:
heuer
1 Solution
 
tonusCommented:
Hello,
         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.
0
 
rrzCommented:
For an example,
look at the Java Tutorial at the Sun site.
Look for the juggling "Duke" program.
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now