Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create a trhead in a applet

Status
Not open for further replies.

herdel

Programmer
Aug 14, 2002
1
CO
hello, bear with me, I am new in this, I need to know how run trhee trheads in an applet? I´d like to create a space invader game with Java.

thanks
 
Hi,

Same way as you would do it in a non-applet environment. You have a class that extends Runnable, or a class that extends Thread, and create the thread in the usual way. You might want to control the "running state" of the thread with the applet control methods, as to stop processing when the applet goes out of focus, or gets back in focus.

HTH
Pieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top