Have An Applet Launch An Other Applet

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

public class SecondApplet extends java.applet.Applet {
TextField textField;
public void init() {
System.out.println("Starting Second applet");
add
(new Label("Second Applet"));
add
(textField = new TextField( 10 ) );
String s = getParameter
("SecondAppletParm");
textField.setText
(s);
}
}
Html Code
<html>
    <body>
        <applet code="AppletLaunchAnother" name="AppletLaunchAnother" height="300" width="350"></applet>
        <param name="appletToLoad" value="SecondApplet">
        <param name="SecondAppletParm" value="Hello World">
    </body>
</html>

Applet


AppletContext

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