Example of inter-applet communication

* description

Basically there are two methods to do inter-applet communication.

1) Temporary object

Each client creates a temporary object of a common class. A client can
have its dedicated storage (instance variables) in the object.  Use
class variables for inter-applet communication.  This method is used
in this example.

2) Daemon object

Each client connects to a daemon object. A thread corresponds to a
client.  Thus, the daemon object has the same number of threads as
clients. If you need client specific storage, use hash tables that are
indexed by Thread, for example

	hashtable.put(Thread.currentThread(), data);
	data = (Data)hashtable.get(Thread.currentThread());

* NOTE

When you alter WorldClock.java and compile it, exit appletviewer or
Netscape once and reload the class.


* Version

Author: HIRANO Satoshi
Versioin: 1.2

* How to compile and run

c:> horbc TimeObj.java Server.java
c:> javac WorldClock.java

c:> horb

c:> appletviewer WorldClock.htm   or  load WorldClock.html in Netscape .


* Files

	Server.java	inter-applet communication server
	TimeObj.java	mobile object
	WorldClock.java	applet object
	WorldClock.htm	HTML file that invokes WorldClock applet
