3. Content:-
Introduction
PreparingToWrite Applets
Developing AndTesting In Applet
Building APPLET CODE
General Format Of Applet Code
Applet Life Cycle
Output Of Our Project
4. Introduction to applet :-
Small java programs that are primarily used in
internet computing.
An applet can do many things such as arithmetic
operations, display graphics, play sounds,accept
user input, create animation, and play interactive
games.
Java applets can now therefore make a
significant impact onWorld WideWeb.
We can do the graphics programming using
applet
5. Developing and testing in applet:-
write an applet code (.java file)
Creating an executeable applet (.class file)
Designing a Web page using HTML tags
Preparing <APPLET> tag
Incorporating <APPLET> tag into the webpage
Creating HTML file
Testing the applet code in CMD
6. Applet
A Java applet is a small application which is
written in Java and delivered to users in the
form of byte code.The user launches the Java
applet from a web page, and the applet is
then executed within a JavaVirtual Machine
i.e JVM in a process separate from the web
browser itself.
7. Building APPLET CODE :-
Applet code uses two classes, APPLET &
GRAPHICS from our Java class library.
The applet class is contained in the java.applet
package.
Applet methods are:-
I. init()
II. start()
III. paint()
The applet code imports java.awt package
which contains the Graphics class.