Introduction to Applets
v An
applet is a special program that you can embed in a web page such that the
applet gains control over a certain part of the displayed page.
v Applet
differs from application programs. Like applications, applets are created from
classes.
v However,
applets do not have a main method as an entry point, but instead have several
methods to control specific aspects of applet execution
simple hello world applet |
Compiling JAVA Applet
This applet consists of two import statements.
1. The first import the abstract windowing
tool kit class. Because applet programs are GUI based not console
based.
2.
The second import statement here is
Applet class. Every applet that you can create must be a sub class of Applet.
3. The paint method is
called to display the output. It has one parameter of type Graphics.
Syntax: drawString(String s1, int x, int y);
I'm curious to find out what blog system you're working with?
ReplyDeleteI'm experiencing some small security problems with my latest blog and I'd like to
find something more safeguarded. Do you have any solutions?
My site: übersetzung spanisch deutsch pons *serveur.proteines.fr*
www.blogger.com
Delete