8.10 Applets and Event Handling
8.2.8 Applet-to-Applet Communication
In the previous section, we have seen how to pass parameters to applet class using HTML tag.
In this section, we will see how to pass message from one applet to another applet in the same
web page. This feature is not very popular amongst programmers; applets are used chiefly as
front end user interface to servers hosting servlet or beans.
If the application demands that small functionality be distributed to multiple applets in the
same web page, then it becomes necessary for inter-applet communications. Therefore to use
this facility, we need multiple applet windows in the same application.
As an example, we will consider a chat example with two applets running. The controlling ...