Breath breath breath!!!
Ok, you want a flash card app, that lets your daughter do the following -
- See flash
cards - Enter the answer
- Get feedback about the answer (wrong or right)
- Skip to another flash card
My thought is you need some general classes along here -
- A flashCard class with a getSolution method and someway of loading or setting its 'problem', this class could extend some gui component
- An application class such as FlashCardProgram. This would have an array of FlashCards. It would also have 1 maybe 2 actionListener classes. One to handle the checking when she types in the answer and another for skipping. You could make one class that checked to see who called the handler. (Thats if I am remembering correctly about a button and a text field both using an ActionListener) This class could also handle the displaying the 'That's Right' or whatever you want to do when she gets it right.
Now, I know I didn't mention MVC, but thats ok. MVC is really for large apps, IMHO, where you really need to ensure the components are seperate from each other. Think of teams of programmers, where some specialize in gui (how your
cards look, color, font, size, etc), others in program business logic (when the answer is right, the current card is removed from the list), and others in how the program should 'flow' (the actionListeners, sort of).
You should be able to do what you're trying with very little complication. For example you said you extended the ArrayList class. Well, thats ok, but you could have simply wrapped it with the class you mentioned. You could also just dispense with the class entirely and have the main application class hold and array of your flash cards.
I'll email you the 2 apps I was talking about. I don't have the source for them right now, but I will add it.
Regards,
Aaron R>