aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Communication between two applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Communication between two applets" Watch "Communication between two applets" New topic
Author

Communication between two applets

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

Hi everybody,
How can I call an Applet from another Applet?
Sivaram Ghorakavi
Ranch Hand

Joined: Nov 30, 2000
Posts: 56
Amit,
If two applets are in the same context they you can communicate using AppletContext. If they are two different applets then you have to have a kind of Manager/Server to communicate across. Infact this is how we did to keep all the applets in sync across client windows. Hope this helps.
Originally posted by amit sanghai:

Hi everybody,
How can I call an Applet from another Applet?

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

Hi Sivaram,

By Manager/Server do you mean that we will have to contact the server by using socket programming?
What do you mean by keeping all the applets in sync across client windows?
I am confused. Please help!!!
natarajan meghanathan
Ranch Hand

Joined: Feb 01, 2001
Posts: 130
Use the NAME tag in the HTML definition. You can give a name to your applet. Other applets in the HTML page can access your applet with this NAME.
thanks.

Sun Certified Programmer for Java 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication between two applets