Submitted By:-Kapilpreet Kaur M.Sc. Bioinformatics IV Roll No. - MBI-09-05
Submitted By:-Kapilpreet Kaur M.Sc. Bioinformatics IV Roll No. - MBI-09-05
Kapilpreet Kaur
M.Sc. Bioinformatics IV
Roll No. – MBI-09-05
JAVA
Compiled and Interpreted
Platform Independent and Portable
Object Oriented
Robust and Secure
Distributed
Familiar, Simple and Small
Multithreaded and Interactive
High performance
Dynamic and Extensible
JAVA APPLETS
Are small java programs that are primarily used
in internet computing
Are run using Applet Viewer or any web
browser supporting java.
Can perform arithmetic operations, display
graphics, play sounds, create animations, play
interactive games etc.
Are of 2 types:- Local and Remote applets.
Local Remote
Developed locally Developed by someone
else
Stored in a local system Stored on remote
computer
Does not uses internet Uses internet connection
CODEBASE=http:// www.netserve.com/applet
Writing Applets
1. Building an applet code (.java file)
2. Creating an executable applet (.class file)
3. Designing a web page using HTML tags
4. Preparing <APPLET> tag
5. Incorporating <APPLET> tag into web page
6. Creating HTML file
7. Testing the applet code
Building Applet Code
Applet code essentially uses services of two
classes namely Applet and Graphics.
the Applet class in java.applet package
provides life to applet through its methods
such as init(), start(), paint().
The Graphics class in java.awt package
contains various methods for drawing.
This requires that applet code imports java.awt
package and java.applet package.
Applet Life Cycle
Creating an executable Applet
Executable applet is the .class file of the
applet, which is obtained by compiling the
source code of the applet.
Syntax:-
Javac HelloJava.java