Here is presented the project that I and my partner did as a final assessment of the course "Java Object-Oriented Programming".
Watch the video: http://www.youtube.com/watch?v=b3NLSkHfCm8.
The specifications were such:
"Implement a simple java-based chat
In your chat service user
- uses swing user interface where he/she can enter nick name and see all the messages by other users
- must enter nick name that exist in the database (database managed by server side application, nick names are inserted directly into the database)
- can enter the message seen by other users
UI layout is free.
This application is a group work and max group size is 3 students.
Table: nickname (nick_id, name)
In the database table there is four users(nicks)
Java based chats copied from internet are NOT accepted!!"
I made the server part - "SimpleChatServer" and my partner - the client part."SimpleChatClient". In the project we applied most part of knowledges gained in the course.
I am attaching both parts. There're two versions of Server part - one with database using and another - without checking allowed usernames though database. The last version is for simplicity of installing if someone who wishes to see the project don't want to set up a database. In the database version I used localhost as a database server so to test that version a database should be setted up on the same host where the server is running.
The whole project was tested over the WAN. Enjoy!
|Attached files 1|
SimpleChat.1.zip (14MB) - Download