Java applet

related topics
{math, number, function}
{system, computer, user}
{land, century, early}
{law, state, case}

A Java applet is an applet delivered to the users 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,[8] JRuby,[9] or Eiffel (via SmartEiffel).[10]

Applets are used to provide interactive features to web applications that cannot be provided by HTML alone. They can capture mouse input and also have controls like buttons or check boxes. In response to the user action an applet can change the provided graphic content. This makes applets well suitable for demonstration, visualization and teaching. There are online applet collections for studying various subjects, from physics[11] to heart physiology.[3] Applets are also used to create online game collections that allow players to compete against live opponents in real-time.

An applet can also be a text area only, providing, for instance, a cross platform command-line interface to some remote system.[12] If needed, an applet can leave the dedicated area and run as a separate window. However, applets have very little control over web page content outside the applet dedicated area, so they are less useful for improving the site appearance in general (while applets like news tickers[13] or WYSIWYG editors[14] are also known). Applets can also play media in formats that are not natively supported by the browser[15]

Java applets run at a speed that is comparable to (but generally slower than) other compiled languages such as C++, but many times faster than JavaScript.[16] In addition they can use 3D hardware acceleration that is available from Java. This makes applets well suited for non trivial, computation intensive visualizations.

HTML pages may embed parameters that are passed to the applet. Hence the same applet may appear differently depending on the parameters that were passed. The first implementations involved downloading an applet class by class. While classes are small files, there are frequently a lot of them, so applets got a reputation as slow loading components. However, since jars were introduced, an applet is usually delivered as a single file that has a size of the bigger image (hundreds of kilobytes to several megabytes).

Since Java's bytecode is platform independent, Java applets can be executed by browsers for many platforms, including Microsoft Windows, Unix, Mac OS and Linux. It is also trivial to run a Java applet as an application with very little extra code. This has the advantage of running a Java applet in offline mode without the need for any Internet browser software and also directly from the development IDE.

Full article ▸

related documents
Occam (programming language)
Mercury (programming language)
Rich Text Format
Blowfish (cipher)
Dynamic HTML
Java API for XML Processing
Data structure
Erlang unit
Client-side scripting
Interchange File Format
Turing completeness
Oberon programming language
C shell
MOO (programming language)
Wikipedia:Browser notes
Serial number
Hello world program
Initialization vector
World file
Dekker's algorithm
Accumulator (computing)
Wikipedia:Database queries
Wikipedia:Free On-line Dictionary of Computing/O - Q
Non-deterministic Turing machine