For communicating the other applets you will also need to Deploy the applets on the web page. The following code shows the sender applet :
Code:
<script src="URL goes here"></script>
<script>
var attributes = { code:'Sender.class',
archive:'demos/example/applet_SenderReceiver/applet_SenderReceiver.jar', width:250, height:70} ;
var parameters = {};
deployJava.runApplet(attributes, parameters, '1.6');
</script>
And the following is a sample of the receiver applet :
Code:
<script>
var attributes = { id:'receiver', code:'Receiver.class',
archive:'demos/example/applet_SenderReceiver/applet_SenderReceiver.jar', width:250, height:70} ;
var parameters = {};
deployJava.runApplet(attributes, parameters, '1.6');
</script>
Bookmarks