Solved

stick figure movements

Posted on 2001-07-01
2
384 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
Comment Utility
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
Comment Utility
For an example,
look at the Java Tutorial at the Sun site.
Look for the juggling "Duke" program.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

744 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

9 Experts available now in Live!

Get 1:1 Help Now