1)Applet: An applet is a java program that can be embedde in a web page. Java application are run by using a java interpreter. Applet are run on any browser that
supports java Applets can also be tested using the appletviewer tool included in java development kit.
2)To run an applet it must be included in a web page, using HTML tags.
3)All applets sre subclasses of the Applet class in the java.applet package.
4)Applets do not contain void main() method.
5)Applets must be declared public: ex: (public class FileName extends Applet).
6)Applet display informations on the screen by using paint method. For example: public class paint(Graphic g).
7)To view an Appletviewer there must be written an Applet code. Applet code basically controls the dimensions of the viewer.
For example: //<appletcode="File name" height="500" width="500"></applet>
( // This means not to print in java)
8)The applet runs in a web page that is loaded in a web browser. But one thing must be reminded In your browser PLUGIN is must be installed.
9)The enviroment of the applet is known as the context of the applet.
10)The cycle of an Applet:
A)The init() method: Basically it is called the first time an applet is loaded into the memory of the computer.
B)The start() method: It comes immediately after the init() process. And can use this method when you want to restart a process.
C)The stop() method: you can use this method to reset variables.
D)The destroy() method: you can use this method to perform clean-up operations like closing a file.
supports java Applets can also be tested using the appletviewer tool included in java development kit.
2)To run an applet it must be included in a web page, using HTML tags.
3)All applets sre subclasses of the Applet class in the java.applet package.
4)Applets do not contain void main() method.
5)Applets must be declared public: ex: (public class FileName extends Applet).
6)Applet display informations on the screen by using paint method. For example: public class paint(Graphic g).
7)To view an Appletviewer there must be written an Applet code. Applet code basically controls the dimensions of the viewer.
For example: //<appletcode="File name" height="500" width="500"></applet>
( // This means not to print in java)
8)The applet runs in a web page that is loaded in a web browser. But one thing must be reminded In your browser PLUGIN is must be installed.
9)The enviroment of the applet is known as the context of the applet.
10)The cycle of an Applet:
A)The init() method: Basically it is called the first time an applet is loaded into the memory of the computer.
B)The start() method: It comes immediately after the init() process. And can use this method when you want to restart a process.
C)The stop() method: you can use this method to reset variables.
D)The destroy() method: you can use this method to perform clean-up operations like closing a file.
No comments:
Post a Comment