What Is An Applet

java packages » java.applet

An Applet is a java program that can be embedded into HTML pages. It runs on the java enabled browsers. Applet can't access system resources on the local computer. Swing provides a special subclass of the Applet class called javax.swing.JApplet. The JApplet class should be used for all applets that use Swing components to construct their graphical user interfaces (GUIs). The browser's Java Plug-in software manages the lifecycle of an applet.

Java Example Program / Sample Source Code
Html Code
<html>
    <head>
        <title>JavaAppletExample</title>
    </head>
    <body>
        <applet code="JavaAppletExample" width="700" height="500"></applet>
    </body>
</html>

Applet


AppletContext

2011-2012 JavaExamples.org Privacy Policy Powered by Google App Engine