Solved

using Threads for sprite animation graphics

Posted on 1997-08-05
2
252 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 Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

705 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