simple java flashcard program using swing UI components