Okay, pretty simple question and I think I am just not grasping the concept entirely...
So I have two classes, QuestionBuilder and QuestionReader. The first one allows me to create Questions and Answers and store them. The second one reads, does not allow a user to edit. Both have a load option, only Builder has a save option.
Anyway, long story short, I'd have to call both of these from the command line separately, or package them separately, or whatever I do--it would have to be separate. In an effort to combine these, I made a "QuestionProgram" class. When I run it, it starts with a gui that is the same size as the other programs. Then, in the menuBar, I have an option to "Open Builder" or "Open Reader".
I can click one, and it opens... perfect!
However, it just opened in a new window.
While I like being able to have multiple windows, I'd really like the ability to change my current GUI with the new GUI, all while staying in the same frame. The basic operation for each class is to run the "go" method, which initializes the GUI.
So... how do I do that? Pass it the same frame? Repaint? I'm not really sure what method/strategy I should be using, here...
Any help is appreciated, thanks!