Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

using Threads for sprite animation graphics

Posted on 1997-08-05
2
Medium Priority
?
265 Views
Last Modified: 2010-04-16
I want to use threads to move several sprites around a screen area, in Java 1.0 (no inner classes).  How can I make sure that a current Graphics object gets passed to each Thread each time it updates?
0
Comment
Question by:glow060197
2 Comments
 
LVL 1

Accepted Solution

by:
vmanocha earned 570 total points
ID: 1224525
I am not very sure that I understand your question fully, but you can get the graphics by calling getGraphics() function of the Component class. If this does not answer your question fully, can you please explain in little bit more detail ?
0
 

Author Comment

by:glow060197
ID: 1224526
Well, yes I guess so.  It wasn't the technique I was looking for, but I think my head was elsewhere when I asked it.  Thanks.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

926 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