Thursday 19 November 2020

Life Cycle Of An Applet

 

 *****Life Cycle   Of  An  Applet ****

 

 

Applet  Life Cycle:-    

                                  All  but  the most  trivial  applets  override a set  of methods  that  provides  the basic  mechanism by  which  the browser  or  applet  viewer  interfaces    to the  applet  and  controls  its execution .  Four  of these  methods:-  

                               1. init( )

                               2.  start( )

                               3.  stop( )

                               4.  destroy( )


apply  to all  applets and   are  defined  by Applet.  Default implementations  for all  of these  methods  are  provided. Applets do not  need  to override  those  methods they  do not  use.  However ,  only  very  simple  applets will  not  need  to  define all  of them .  AWT  based  applets  will  also  override  the paint( )  method,  which  is  defined  by the  AWT   Component  class . This  method  is called  when the applet's  output  must be  redisplayed.

 

 

                    

                           Thank you 



No comments:

Post a Comment

Student Marks Calculation app using java

      import javax.swing. *; import java.awt.event.ActionEvent ; import java.awt.event.ActionListener ; public class Student { private J...