prev next

Project 2 - Specification

Overview

The chat program should be started by using the following command:

java CSChat myhandle

where myhandle is chosen by the user.  A handle is any valid Java string.  Note that if you choose to use spaces or special characters in your handle you may have to enclose it in quotes on the command line.  If the handle is already registered by another chat program user, the following error message will be printed on standard error and the program will gracefully terminate without generating any additional output:

myhandle is already in use

where myhandle is the handle the user specified on the command line. 

Note: the handle that you specify will be seen by all students taking CS2.  Do not use handle names that would be considered unprofessional or offensive.  Failure to follow this rule may result in a failing grade for this project or in the course.

If the program is started without the correct arguments, the following error message will be printed on standard error and the program will gracefully terminate without generating any additional output:

Usage: java CSChat myhandle

Design Constraints

You are not allowed to use a GUI building tool like Forte, JBuilder or VisualJ++ for this project.  The Swing code must be manually written.


prev next
version 1.7, 2005/01/21 16:27:39, © by csfac@RIT. All rights reserved.