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

 
sreelakshmi sarma
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anybody please tell me how to call an applet from another applet.
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this to the Applet section where it belongs and answering it there... (the package java.applet is not covered in the SCPJ2 exam).
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If by that you mean how can an applet communicate with another applet in the same page, I have an example with code, as part of my Java stuff (item {3} ).
Simple inter applet communication is demonstrated there. I also show how significant the CODEBASE attribute of the applet can be in this respect.
Before, you may want to look at the AppletContext interface and in particular, its methods java.lang.String)" rel="nofollow">getApplet() and getApplets().
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in java, you don't have to call a applet from another applet. you use anotherappletobject.method to use the methods of the other applet. hope you understand.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic