Homework 6 - Chess Database GUI

Introduction

In this homework you will practice:

Problem Description

You have a bunch of PGN games and want to display them easily.

Solution Description

Write a GUI program in a file named ChessGui.java that displays the metadata of ChessGames, one per line, of each game in ChessDb in a TableView. In the bottom of the main screen should be two buttons: “View” and “Dismiss”.

“View” should be disabled if no game is selected in the table. If a game is selected, “View” should be enabled and, when clicked, should show a dialog box with the metadata and moves of the selected game. This dialog may be as simple as you wish.

“Dismiss” should exit the program.

Your main screen should look something like this:

Once you figure out how to hook up the domain objects that we give you (ChessGame and ChessDb) to the TableView, this assignment is very easy.

Extra Credit

Tips and Considerations

Checkstyle

Checkstyle deduction will be capped at 50 points for this homework. Use the -a flag when running checkstyle! JavaDocs will be counted for this homework.

Submit code that compiles!!!

Non compiling code will receive an automatic zero.

Turn-in Procedure

Submit each of your Java source files necessary for all the files in your chess game database to compile on T-Square as separate attachments. When you’re ready, double-check that you have submitted and not just saved a draft. Download each file and compile them to assure that nothing went wrong with the submission process.

Verify the Success of Your Submission to T-Square

Practice safe submission! Verify that your HW files were truly submitted correctly, the upload was successful, and that your program runs with no syntax or runtime errors. It is solely your responsibility to turn in your homework and practice this safe submission safeguard.