Applet

An applet is any small application that performs one specific task; sometimes running within the context of a larger program, perhaps as a plugin.[1][2] However, the term typically also refers to programs written in the Java programming language which are included in an HTML page. The word Applet originally comes from the application AppleScript.[citation needed]

Contents

Definitions

Applet as standalone application

Some applets are able to function as any other normal software application (provided they are hosted by an operating system), but are small in size and perform only a small set of tasks. Examples of applications often classified as applets are all of the Accessories in Microsoft Windows (such as Windows Notepad or Microsoft Paint).Applets are not full featured application programs.[2]

Applet as extension of other Software

In some cases, an applet does not run independently. Such applets must run in a container, which is provided by a host program, through a plugin, or a variety of other applications including mobile devices that support the applet programming model. Applets are usually included by using the statement import java.applet.Applet[citation needed]

Examples of Web-based Applets include:

Applet vs Subroutine

A larger application distinguishes its applets through several features:[citation needed]

  • Applets execute only on the "client" platform environment of a system, as contrasted from "servlet". As such, an applet provides functionality or performance beyond the default capabilities of its container (the browser).
  • Applets capabilities are restricted by the container.
  • Applets are written in a language different from the scripting or HTML language which invokes it. The applet is written in a compiled language, while the scripting language of the container is an interpreted language, hence the greater performance or functionality of the applet. Unlike a "subroutine", a complete web component can be implemented as an applet.

Java Applet

Java Applets are used to provide interactive features to web applications that cannot be provided by HTML. Since Java's bytecode is platform independent, Java applets can be executed by browsers for many platforms, including Windows, Unix, Mac OS and Linux. When a Java technology-enabled web browser views a page that contains an applet, the applet's code is transferred to the clients system and executed by the browser's Java Virtual Machine (JVM).[3] An applet is referenced in a HTML page via the (now deprecated) <APPLET> tag. The <APPLET> tag has been replaced by the <OBJECT> tag.[4]

See also

References

  1. ^ "AskOxford: applet", Oxford Dictionaries. Accessed on Jul 21, 2009
  2. ^ a b "applet: Definition from Answers.com", Answers.com. Accessed on July 21, 2009
  3. ^ "Applets", Sun Developer Network. Accessed on July 21, 2009
  4. ^ "HTML applet tag", W3Schools. Access on July 21, 2009

External links

Open source encyclopedia content modification information:

This page was last modified on 14 February 2010 at 03:01.

Authorship and Review

Open source encyclopedia content provided here is not reviewed directly by MedLibrary.org. Content is sourced directly from Wikipedia and is authored by an open community of volunteers. It is not produced by or in any way affiliated with MedLibrary.org.

Usage Guidelines

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article on "Applet", which is available in its original form here:

http://en.wikipedia.org/w/index.php?title=Applet

All material adapted used from Wikipedia is available under the terms of the GNU Free Documentation License. Wikipedia® itself is a registered trademark of the Wikimedia Foundation, Inc.