Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet - Applet Comm

 
Deepika Wadhwa
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Inter-Applet Comm is possible?
I read somewhere that it is possible through AppletContext?
can somebody give me an example for this ?
thanx in advance
Deepika
 
Sanjeev Kaushik
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the applet Object like this
Applet appCont = getAppletContext().getApplet("app2");//"app2" is applet name given in html
//method call
appCont.methodName();
HTML for Applets could be like this
<applet name="app1" code="abc.class" width=200 height=200>
<applet name="app2" code="abc.class" width=200 height=200>

Hope this helps you. There is one more method to do this communication i.e. thru javascript using JSObject. you can see api for this protocol on Netscape site.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The third item listed on Tony Alicea's web page is an example of inter-Applet communication.
 
Deepika Wadhwa
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sanjeev & Dirk for your responses.
Deepika
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic