Re: Getting Two Java Applets to Communicate with Each Other



On 30 Aug 2005 14:38:54 -0700, kvnsmnsn@xxxxxxxxxxx wrote or quoted :

>Is there a way in Java to write two applets in which one user using
>one applet can send messages to be read by another user using the
>other applet, at a potentially distant location?

Yes. Once you have the AppletContext you can call methods of the
other applets.

See http://mindprod.com/products1.html#CURRCON source code for an
example of how I do it. In CurrCon, if any Applets discovers the user
would like to use a different currency, it informs all the other
Applets who update their displays.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Java Network Programming FAQ
    ... Java Network Programming FAQ. ... How can I find out who is accessing my server? ... What are socket options, and why should I use them? ... How does servlet performance compare to applets? ...
    (comp.lang.java.programmer)
  • Java Network Programming FAQ
    ... Java Network Programming FAQ. ... How can I find out who is accessing my server? ... What are socket options, and why should I use them? ... How does servlet performance compare to applets? ...
    (comp.lang.java.programmer)
  • Java Network Programming FAQ
    ... Java Network Programming FAQ. ... How can I find out who is accessing my server? ... What are socket options, and why should I use them? ... How does servlet performance compare to applets? ...
    (comp.lang.java.programmer)
  • Java Network Programming FAQ
    ... Java Network Programming FAQ. ... How can I find out who is accessing my server? ... What are socket options, and why should I use them? ... How does servlet performance compare to applets? ...
    (comp.lang.java.programmer)
  • Java Network Programming FAQ
    ... Java Network Programming FAQ. ... How can I find out who is accessing my server? ... What are socket options, and why should I use them? ... How does servlet performance compare to applets? ...
    (comp.lang.java.programmer)