Saturday 6 August 2011

Call Hierarchy of Java Applet

Threading:
   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 class
     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.

No comments:

Post a Comment