Java   View all facts   Glossary   Help
Java program > applet
Next Java programapplet viewer    UpJava program    Previous Java programstandalone program   

applet
(Java applet)
subjectfact 
appletadheres to a set of conventions that lets it run within a Java-compatible browseradded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:01.0
can be embedded in an HTML page    added by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:01.0
can be loaded from a remote or local locationadded by: Marvin, 2001-10-19 11:36:01.0
can be viewed by a Java-compatible Web browseradded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:01.0
can be written using Java 2 but the person viewing the applet must be using a browser that supports it or they must download the Java Plug-inadded by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:01.0
can have a main method if it is to be run standalone (usually for the purpose of testing)    added by: JJ, source: JT, 2001-10-19 11:36:01.0
can have parameters which are passed from the HTML file to the applet when the applet is loaded    added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:01.0
cannot change the executing machine's environment    added by: Marvin, 2001-10-19 11:36:01.0
cannot read arguments from the command line    added by: DS, 2001-10-19 11:36:01.0
has definition A program that adheres to certain conventions that allow it to run within a Java-enabled browser    added by: DS, source: Sun Java Tutorial, reference: Tutorial, 2001-10-19 11:36:01.0
does not have part added by: Marvin, source: On To Java, 2001-10-19 11:36:01.0
does not need a main method if it is used solely in a browser    added by: JK, source: On To Java, 2001-10-19 11:36:01.0
has example
import java.awt.Graphics;
class HelloWorldApplet extends java.applet.Applet {
public void paint(Graphics g) {
g.drawString("HelloWorld!",5,25);
}
}
added by: JK, source: Teach Yourself Java in 21 Days, 2001-10-19 11:36:01.0
is an instance of Applet class, JApplet class or one of their subclasses    added by: JK, source: On To Java, 2001-10-19 11:36:01.0
is a subtopic of Applets2001-10-19 11:36:01.0
is started by an init methodadded by: JK, source: On To Java, 2001-10-19 11:36:01.0
is usually written using Java 1.0 or Java 1.1 because most web browsers do not support later versions of Java    added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:01.0
is a kind of Java programadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:02.0
must implement one ofadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:02.0
must implement a destroy method which is executed when the applet is no longer neededadded by: WH, source: Sun Java Tutorial, 2001-10-19 11:36:02.0
must implement a stop method which may be executed anytime, usually when the applet is not immediately visibleadded by: WH, modality: necessary, source: Sun Java Tutorial, 2001-10-19 11:36:02.0
normally does not run standalone    added by: DS, source: Sun Java Tutorial, 2001-10-19 11:36:02.0
runs in added by: DS, source: Sun Java Tutorial, modified by: JK, 2001-10-19 11:36:02.0
is a synonym of Java applet2001-10-19 11:37:05.0
Java programcan be compiled on any platform that has a Java compiler    2001-10-19 11:37:09.0
can be run on any implementation of the Java Virtual Machine specification    2001-10-19 11:37:09.0
is usually slower than native code2001-10-19 11:37:09.0
is executed by a Java Virtual Machine2001-10-19 11:37:09.0
runs on a Java platform2001-10-19 11:37:09.0
should follow consistent guidelines that make the program easy to read2001-10-19 11:37:09.0
to run you type java and the class file name on the command line2001-10-19 11:37:09.0
to run you may need platform-specific instructions2001-10-19 11:37:09.0

Next Java programapplet viewer    UpJava program    Previous Java programstandalone program