Solved

stick figure movements

Posted on 2001-07-01
2
385 Views
Last Modified: 2006-11-17
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
Comment
Question by:heuer
2 Comments
 
LVL 1

Accepted Solution

by:
tonus earned 100 total points
ID: 6245078
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
 
LVL 27

Expert Comment

by:rrz
ID: 6245221
For an example,
look at the Java Tutorial at the Sun site.
Look for the juggling "Duke" program.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
unix in java example 9 53
servlet  URL Rewriting 1 27
couple of eclipse 5 25
table example 4 24
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now