The chat program should be started by using the following command:
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:
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:
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.