Threading:
Java Applet is running as the thread which is a runnable instance so that it can be started, stopped, suspended and restarted again.
ii) Running all the time when condition applies, switching to paint() method
whenever the repaint() method.
paint()
Actually a drawing component to draw what the run() method proposes.
Java Applet is running as the thread which is a runnable instance so that it can be started, stopped, suspended and restarted again.
Start()
Starts the thread.Stop()
Stops the thread.Destroy()
Destroys the thread.run()
i) Implemented from Runnable classii) Running all the time when condition applies, switching to paint() method
whenever the repaint() method.
paint()
Actually a drawing component to draw what the run() method proposes.
No comments:
Post a Comment