You may customize your app how ever you choose - this includes images, sizes, fonts, colors, size of the app, configuration. Love scary movies? Dia De Los Muertos? Pumpkin spice? Pick your own theme, or feel free to model it after the example provided.
Remember to ensure your app works on all display sizes. For this lab, you can do this by making your appno larger than 800x800.
The app must have the described GUI components on each view.
Trivia
TheTrivia.javaclass will represent the trivia game in the “Trick” view of this app. The class Trivia will have an object method calledloadTrivia(…)which takes in a file name and stores 1 piece of trivia from that file.
Sample trivia questions, answers, and responses are provided intrivia.csv.
Triva information consists of 1 question, 3 possible answers, and 1 correct response.
We will limit the number of possible answers to any trivia question to 3 for the sake of this lab.
The loadTrivia(…) method should read in 1 randomly chosen piece of trivia each time it is called, so that the user in our app sees a different question when they choose “Trick” from the main view.
All classes in the model must always have getters and setters for all class variables. Constructors are required for all required variables in a class.
Note that the controllers in your application should
never
read files or update data. Instead, to follow MVC, the controller classes will call upon the model classes to complete these tasks.
Reminders
Always test your app thoroughly before submitting, to ensure everything is working properly.
You must export the Eclipse project, including all files & dependencies for the project (this includes images, text files, fxml, etc). Submit the zip file on Blackboard.
As always, follow the instructions on the lab guidelines.