java

A Java applet is an applet delivered in the form of Java bytecode. Java applets can run in a Web browser using a Java Virtual Machine (JVM), or in Sun's AppletViewer, a stand-alone tool for testing applets. Java applets were introduced in the first version of the Java language in 1995. Java applets are usually written in the Java programming language but they can also be written in other languages that compile to Java bytecode such as Jython. 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.There are open source tools like applet2app which can be used to convert an applet to a stand alone Java application/windows executable/linux executable. This has the advantage of running a Java applet in offline mode without the need for internet browser software.

Technical Informaton

Java applets are executed in a sandbox by most web browsers, preventing them from accessing local data. The code of the applet is downloaded from a web server and the browser either embeds the applet into a web page or opens a new window showing the applet's user interface. The applet can be displayed on the web page by making use of the deprecated applet HTML element [1], or the recommended object element [2]. This specifies the applet's source and the applet's location statistics. A Java applet extends the class java.applet.Applet, or in the case of a Swing applet, javax.swing.JApplet. The class must override methods from the applet class to set up a user interface inside itself (Applet is a descendant of Panel which is a descendant of Container).

Advantages of Applets

A Java applet can have any or all of the following advantages:

Disadvantages of Applets

A Java applet is open to any of the following disadvantages:

an implementation of the the Sun Java plug-in does not exist for 64-bit processors.1

applets may require a specific JRE.

See Also

Java Web Start

Java Applets Examples

Documentation icon Template documentation
Note: parts of or the entire template might not be visible without values provided.
Description
Use this on pages which directly use Wikipedia content.
Syntax
Type {{wikipedia|page name}} as the last item of the page text.
Note that "page name" should be the title of the page on Wikipedia.