Solved

using Threads for sprite animation graphics

Posted on 1997-08-05
2
249 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
vmanocha earned 190 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
check java version using powershell 13 303
throw exception 21 68
Android development question 2 81
Java basic valueOf question 1 34
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

726 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