Solved

stick figure movements

Posted on 2001-07-01
2
387 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate example issues from command prompt 10 50
How to determine if a string is a valid SHA value 7 35
going to wrong jsp page 2 33
maven disable workspace resolution 1 21
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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.

856 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