7 replies
by dmiles
Reference the following sites:
1)http://sunsite.unc.edu/javafaq/javatutorial
2)www.mcs.anl.gov/home/otc/Guide/CaseStudies/simplex
3)http://ouray.cudenver.edu/~mitagaki
by diva_cen2000
hi,
Normally methods are blocks code with a specific functionality and property.
Like wise applet do have their own methods.those methods have the functionality and property of creating the applet ,starting the applet ,stoping and to destory the applet.
basic applet methods are init(),start(),stop(),destroy().no need for overridding these methods in the subclass of applet.
init() method will initialize the applet.
start() method will be called when it is started
stop () method will be called when the applet goes out of focus.
destroy() method will be called when u close the applet.
if u want to draw something on applet u have to use paint method which not the method of applet.
by raf952
Methods are behaviors of classes. They are similar to subroutines or functions in non-object oriented langues, but along with data members, are encapsulated in the definition of the class.
Applets are a Java class. To be precise, Java defines to type of Applets: java.awt.Applet and javax.swing.JApplet. As classes, they have pre-defined methods that define their basic behavior. When you create your own kind of applet, you will likely extend it and add your own methods, defining the specific behavior you want your applet to have.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending