Online-Instant-Messenger creates a socket connection that allows communication between multiple users and one server. Login Window, Client and Server Windows have Graphical User Interfaces.The Login window is connected to the database that stores users' names and their passwords. The project is written in Java using Netbeans IDE.
- Using NetBeans IDE run serverwindow.java first. It will open the server window. Press "START" to run the server.
If the server wasn't started, the client is not able to connect to the chat.
- Open Login window by running loginwindow.java. It will ask for a user name and password. User names and passwords are written into the database attached to the project and can be modified by the database's administrator.
The attached database contains the following names and passwords. Enter one of the following:
john 123
sara 234
kate 345
sam 456
If login information is incorrect, the following popup window appears.
If "OK" pressed, then
If the right user name and password are entered:
If "OK" is pressed, it automatically starts Client window.
If client presses "START", the connection with server is established. Another client can see that another user is online.
Clients can send messages by typing messages in the text field and pressing "SEND". Client chat window displays the conversation between users. Server window shows users chat and connections.
When the user presses "Logoff", the client window is closed. Users can see that another user is disconnected
- Server Window shows active users when "online users" is pressed.
To clear chat on the server side, press "clear".
To shut down the server press "END".