Hi everybody, I want to write an applet and put it on a website that can be used by a few people at a time to function like a chat room. Basicly I want it to have a text area on top to display the conversation and a textfield on the bottom to add a new entry. My problem is that I don't know how to make it so that everybody see's the same convo. Is there a way to do it so that everybody can see and Convo.append(String newEntry); the same convo? Any comments greatly appreciated. -Dan
Very common question. A search of this forum for "chat" returns 93 hits. A search of the Sockets and Internet Protocols forum returns 113. I'm sure there's other posts spread throughout the Saloon. A browse through them should give you an idea as to what is involved in making a chat app.
You need a server application. Network communication takes place using sockets. You should read through the Java Tutorial chapter on Custom Networking to get the basics. Be aware that applets can't connect to any server other than the one they were downloaded from (unless they are digitally signed). That means that your server application has to run on the same computer you would host the applet on. [ July 15, 2004: Message edited by: Joe Ess ]