The program should implement a chat service that is able to attend multiple clients at the same time. It can be implemented by either using a central server (easier) or peer-to-peer clients. It should be able to have at least 10 rooms for conversation. The clients should be able to create new rooms.
The chat should have, at least, the following commands (you may change the name of the commands):
Commands: list List the names of all rooms. nickname <name> Gives a name for the user. join <room name> Joins a room. \ Leaves a room (only command possible inside a room).
Events that should be broadcasted for all room members:
New user enters room. Whatever a user types. User leaves room.
Examples:
User hotair enters room pingpong. User niceperson: Welcome hotair ! User hotair: Hi. ... User hotair: I don't like you, niceperson. User hotair leaves room pingpong.
The systen should allow messages to a room or to from user to user (private mode). The chat client should be implemented using Java Swing. The online Java™ Tutorial trail, which is at http://java.sun.com/docs/books/tutorial/, includes a section on Swing and the Java Foundation Classes; you'll find it at http://java.sun.com/docs/books/tutorial/uiswing/.
Copyright © 1998-2009 Dilvan Moreira