how to open the same applet over multiple clients.
hi all,
i am making a applet application .The same applet has to be opened at the same time at different client and the changes in the information upon the applet page must be reflected at all the clients how can i do that plz sujjest me.
Thanks in advance.
# 1
You would have to have all of the applets connect to a "server applet" on one of the computers. When the applet starts, you could give the choice to host or connect to another host using an ip address and port, using the ServerSocket and the Socket classes. However, this requires multiple threads running, but is quite possible. The server would need threads to accept clients, receive information, and send information (plus the built-in gui and event threads). The clients would need a thread to receive information from the server and update the applet page.