getApplet(String name) In AppletContext

java packages » java.applet
Java Example Program / Sample Source Code
import java.applet.Applet;
import java.awt.*;

public class GetApplet2 extends Applet {
TextArea textArea;

public void init() {
textArea =
new TextArea(7, 30);
add
(textArea);
}

public void add(String msg) {
textArea.append(msg);
textArea.append
("\n");
}
}
Html Code
<html>
    <body>
        <applet code="GetApplet_AppletContext" name="GetApplet_AppletContext" height="300" width="350"></applet>
        <applet code="GetApplet2" name="GetApplet2" height="300" width="350"></applet>
    </body>
</html>

Applet


AppletContext

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