Applet To Applet Communication On Same Page

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

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

Applet


AppletContext

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