First the ChatServer has to be started.
DBCheck is started automatically:
Later on, both servers can be shut down by ExitServer
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:
...you have to add an ODBC datasource for the whois-database (whois.mdb).
| 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 |