As a way to teach Java, I am writing this small application for students to practice basic math. The idea is that the child performs any number of mathematical tasks, if they are in the application, he simply continues to throw problems at them until they click the Finish button. When they decide to do this, I want a new JFrame to appear that shows them all the problems they tried, along with their answer, and whether they got the right or wrong problem.
The advice I'm looking for is the best way to present these results. I looked into GridLayout and GroupLayout, but I don’t think that is for sure. I did something similar in VBA for Excel, and there I just ran a for loop with one iteration for every problem they tried to execute. Each iteration would add a series of labels to the frame with the elements of the problem displayed in different labels. I tried this in Java, but I can't even get shortcuts even for display.
So, before I get everything specific and start publishing my code, I want to ask a bigger question: "What is the best way to create this kind?" Often I leave in one direction to lose time before someone proposes a completely different (and best) approach.
Thank!
(edit: here is an image of how I did it in Excel. I try to repeat basically the same thing in Java)

source
share