Inter Applet Communication On Same Page

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

public class InterAppletCommunication2 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="InterAppletCommunication1" name="InterAppletCommunication1" height="300" width="350"></applet>
        <applet code="InterAppletCommunication2" name="InterAppletCommunication2" height="300" width="350"></applet>
    </body>
</html>

Applet


AppletContext

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