•An applet is a small Java application that can be accessed from an internet server, downloaded automatically, and run along as a part within the webpage.
•Applets provide security. All the applets run in a sandbox like environment. They have limited access to the client’s system resources. Hence there is no threats of viruses and other malicious programs.
•Applets allow programmers to develop GUI applications.
•Applets provide GUI through java’s AWT or Swing classes.
Differences between applets and console applications:
Applet Class:
•Every applet application extends the “Applet” class which is available in “java.applet” package.
•“Applet” class contains several methods which allows us to control the applet.
•“java.applet” package also contains three other interfaces namely: AppletContext, AppletStub and AudioClip.
•Applets provide GUI through AWT(Abstract Window ToolKit) or Swing classes.
•Swing package provides JApplet class. By extending this class we can create applets.
•Swing classes provide extended and easy-to-use functionality over the AWT classes.
•All applets are subclasses of “Applet” class in “java.applet” package or subclasses of “JApplet” class in “javax.swing” package.
•Applets are not standalone programs that contain a main() method.
•Applets run within a web browser or by using appletviewer.
•appletviewer is a tool provided by the JDK to run applets.
Applet Class Methods:
Applet Life Cycle:
•Applets provide security. All the applets run in a sandbox like environment. They have limited access to the client’s system resources. Hence there is no threats of viruses and other malicious programs.
•Applets allow programmers to develop GUI applications.
•Applets provide GUI through java’s AWT or Swing classes.
Differences between applets and console applications:
Applet Class:
•Every applet application extends the “Applet” class which is available in “java.applet” package.
•“Applet” class contains several methods which allows us to control the applet.
•“java.applet” package also contains three other interfaces namely: AppletContext, AppletStub and AudioClip.
•Applets provide GUI through AWT(Abstract Window ToolKit) or Swing classes.
•Swing package provides JApplet class. By extending this class we can create applets.
•Swing classes provide extended and easy-to-use functionality over the AWT classes.
•All applets are subclasses of “Applet” class in “java.applet” package or subclasses of “JApplet” class in “javax.swing” package.
•Applets are not standalone programs that contain a main() method.
•Applets run within a web browser or by using appletviewer.
•appletviewer is a tool provided by the JDK to run applets.
Applet Class Methods:
Applet Life Cycle:
No comments:
Post a Comment