Question: Create a GUI flashcard program using Java Swing components that read a data file input; The goal of this project is to create a simple

Create a GUI flashcard program using Java Swing components that read a data file input;

The goal of this project is to create a simple GUI flashcard program. At launch the program should ask the user to select a file containing questions and answers to use. The data should be read into one data structure that holds a series of Flashcard objects. These Flashcard objects should have at least two attributes (a question and a related answer) in addition to any other attributes and or methods needed. The flashcard data structure should be randomized. Each time the program is run the order of the flashcards should be unique. Do some research the easy solution to this is only one line of code. The GUI should consist of a single JLabel and JButton. On starting, the JLabel should display a welcome message and the JButton should display Start. After starting the first question should been displayed and the button should display Click for Answer. Upon the next click the label should display the answer and the button should display Next Question. After the last question has been answered the program should display a dialog box asking the user if they want to go through the questions again. The main button should be disabled. The data file should be plain text but can be in whatever format you choose to use. The text file should be created with a text editor. There is no need to have the program generate it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!