|
Java™ by example!
|
|
|
How do I communicate among applets that are hosted on the same HTML page?
In the APPLET tag, name the applet that you want to access. You can then get the reference to this applet by calling the method getApplet on the AppletContext. Here's an example: AppletComm.html:
MyApplet1.java:
MyApplet2.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|