ChatRoom project is really my first cup of java.

It is a Client/Server application. There are five files to be needed to run this project. Server.java and ClientConnection.java are Server side files (Server side is an application.) ServerConnection.java and ChatRoomClient.java are Client side files (Client side is an applet.) The last file is ChatRoomClient.htm.

ClientConnection.class
ChatRoomClient.class
ServerConnection.class
Server.class
ChatRoomClient.htm

How to run the Chat Room:

Step 1: Run the Server application first. At Dos command input:
java Server

Step 2. Open another Dos-prompt window and run Client applet. At Dos command input:
appletviewer ChatRoomClient.htm

Step 3. First input your name. It can be any words long and separated by space. For example, �john lee�. Also you don�t need to worry about the same name in the chat room. The server application will assign a unique ID number to every client.
After you type the nickname, the interface will show you who are in the chat room right now.

Step 4. Now you can type some sentences to chat. You can either press �send� button to send a chat message or just press �Enter� key when finishing your chat sentence.
In the chat text area, you can see the chat sentences which all begin with the nickname and �:�.

Step 5: Repeat step 2, 3, and 4 to let another people enter the Chat Room.

Step 6. If one person wants to leave the Chat Room, press �exit� button. Then it will show "left chat room" in the chat text area. Also his or her name will disappear in other chat windows.
1