Coco's Java Chat: Installation

The Java Chat version 3.0 contains four components:
  1. ChatServer: the great center, distributing messages and /whois-info
  2. DBCheck: the authentification server, recognizes and registrates users
  3. TextChat: the chat applet seen by the user
  4. ExitServer: a small client, used to shut down the servers

The Servers


First the ChatServer has to be started. DBCheck is started automatically:

Later on, both servers can be shut down by ExitServer


The Applet

The applet needs a parameter "HostIP", to find the server.
The following code embeds the applet into a HTML page:

<applet code="TextChat.class" width=700 height=500>
  <param name="HostIP" value="127.0.0.1">
</applet>

value is the IP address of the computer running ChatServer.
When the applet is resized,there are not more lines displayed. The count of displayed lines is set in TextBlock.java by the variable AnzahlLabels festgelegt.

After starting the applet, the chatter is asked for name and password.

If he is not registered yet, he can click "have no password"
The registration frame is opened an the user can choose an password.

When a chatter has logged in or has just registered, the chat applet appears:





Before it's going to run...

...you have to add an ODBC datasource for the whois-database (whois.mdb).

If you want to use a better DBMS, just create that table:
chatUsers
Name (PK) varchar the chatter's login names
add varchar eMail address
HP varchar homepage URL
RName varchar real name
Password varchar login password





Functions planned for future versions:
  1. Changing the numcer of visible lines at runtime
  2. no line break in words
  3. More formatting (italics/bold/and so on...)
  4. Nicer login dialogs
  5. Several "rooms"
  6. Whatever you ask for
  7. Maybe somebody shouldt test the applet on MS IExplorer.

to top

back