Advanced Java
3 credits
Comments placed in the source code file | 5 |
Application placed in an executable JAR file | 5 |
Questions can be viewed, edited, added, and deleted through a JTable | 20 |
Answers can be viewed, edited, added, and deleted through a JTable | 20 |
Questions and Answers are loaded from Data files and can be saved back to those files after changes are made | 30 |
The relative popularity of Questions and Answers can be changed in a meaningful way | 20 |
Total | 100 pts |
To practice using JTables
For this lab you will need to create a Java Application that allows a user to manage questions and answers. The application should make use of at least two JTables, one for displaying a list of questions which are stored in a questions data file, and another for showing answers which are stored in an answers data file (sample files available below).
The fields stored about a question are:
The application should allow the user to view, edit, add, and remove questions from the file as well as providing some way to keep track of the number of times the question has been viewed indicating the questions popularity.
The application should also make the answers to each question available to the user in some way that makes it clear to the user which answers belong to which questions.
The fields stored about an answer are:
The application should allow the user to view the answers for a specific question and should allow the user to add new answers, remove answers, edit answers, and indicate the popularity of an answer.