![]() tBorder(BorderFactory.createEmptyBorder(5, 15, 0, 15)) įrame = new JFrame("Quiz card builder - " + deck.getFileName()) įtDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE) įrame. Tap on flashcard to flip to the back. Just swipe right if you’ve mastered current card, or swipe left if you need more practice. tLayout(new BoxLayout(panel, BoxLayout.Y_AXIS)) ‘This simple app allows you to create custom decks and flashcards with text and images on both sides, within app or on your computer with Excel. */ĭeck.addQuizCard(getQuestionText().getText(), getAnswerText().getText()) ītAlignmentX(Component.LEFT_ALIGNMENT) īutton.addActionListener(ev -> addCard()) ** addCard - adds a QuizCard to the current Deck. Private JTextArea questionText = new JTextArea() ![]() Private JTextArea answerText = new JTextArea() Private JFileChooser fileChooser = new JFileChooser() ** QuizCardBuilder - This class allows the user to create, edit and save a Deck of QuizCards. QuizCardBuilder (creates and edits a collection of flashcards) import java.awt.* QuizCardBuilder quizCardBuilder = new QuizCardBuilder(new Deck()) MainCode (this class only really exists to create an instance of the flashcard program) /** MainCode - creates an instance of a simple flashcard program */ In the build() method in QuizCardPlayer, would it be better to use SwingUtilities.invokeLater() inside every other build***() method instead of using it in just the build() method?Īny feedback regarding my JavaDoc style comments are welcome too (I felt that a lot of the functions are self-descriptive enough for there to not be a need for comments). Is my use of inner classes in QuizCardPlayer ok? Here's some specific areas that might be helpful: Please provide any recommendations on the readability and the design of the program (including my use of OOP). Optional: Hook your computer up to a projector so students can see the Flashcard Factory Floor during the game. Or, click Edit to make changes to your List before playing. In the new window, click Start Flashcard Factory. Open a saved Vocabulary List from Drive or start a new one. I'm new to Java and I've written a flashcard program in Java 8 that allows the user to create a collection of flashcards and then test themselves using those flashcards. Launch the Flashcard Factory Go to Pear Deck Home.
0 Comments
Leave a Reply. |