Hi! I have a confussion. to keep running an applet why do we alway impliment runable interface. can't we create a new thread and run that applet in that. can somebody give me any reason for that. regards, Bobby ;-}
Ramneek, there is NO need to implement the Runnable interface for an applet. You can make, display and run the applet WITHOUT implementing Runnable interface. But normally we need to carry on some processing or animation in a separate thread. Thus we want the applet to create and start a thread for that purpose. One way to do that is to make the applet implement the Runnable, and then to construct and start a new Thread using the Runnable applet instance.
posted 19 years ago
thanks guys for above. can somebody tell me what is the difference between ranch hand ,greenhorn, bartenders and sheriffs. [This message has been edited by Ramneek Handa (edited March 14, 2001).]
Every plan is a little cooler if you have a blimp. And a tiny ad.