CS242: Advanced Programming Concepts in JAVA

Fall 2010

Program 9

Due: 2:00 P.M., Monday, 11/22/10

In this assignment, you are to implement the menu commands that were displayed in the dropdown lists in Program 8. These commands should work as they did in Programs 6 and 7. The only difference is that now the user interacts with the program through graphics components in the window instead of the command line. The Help function can be very simple: just a list of the commands and how to use them. Nevertheless, try to make the commands easy enough so they can be used without referring to the Help function. It can all be done with various kinds of textboxes, but you may also want to use some buttons, checkboxes, or radio buttons. The choice is up to you. The main criterion is that the program should be easy to use. You don't need to implement the display command because a picture of the board will be displayed in the final version of this program. For this assignment, all you need to do is create a simple graphics component showing where the board will eventually be displayed. The main thing you should do is make sure that your other graphics components (drop down menu items, text boxes, and so on) don't cover up the board.

Your program must follow these implementation restrictions:

Your grade will be based on how well you design and implement the code, how thorough your error handling is, on good programming practices, and on thorough testing. Coding guidelines for Java programs are posted here.

Add comment documentation to your program (all classes) and use javadoc to extract the documentation into an HTML file. Include a javadoc comment for each class and each method. The class comment should include your name and the date (use the @author tag). Method comments should briefly describe the purpose of the method, its arguments, and what, if anything, it returns (using @param and @return as appropriate).

The physical location of the javadoc comments is critical. A class comment must immediately precede the line containing the keyword class, and method comments must immediately precede the method.

When you have commented your source files, run javadoc to create the .html files and view them in a browser of your choice.


What to submit:
Your grade on the program will be based on: