1/Write a TeachArithmeticFrame class that teaches children arithmetic. The
frame uses a JLabel for a problem and a JTextField for the user answer. When
the user presses the Enter key (while the JTextField object is active) or clicks
the OK button, display a message stating whether the user’s answer is
correct. When the Next button is clicked, display a new problem. The
numbers are limited to two digits.
Consider using a larger font for the JLabel and JTextField text. You can
change the color of text by calling the setForeground method, for example.
2/Extend the TeachArithmeticFrame class so that the numbers of correct and
incorrect answers are kept. Display these two numbers somewhere on the
frame. Add the third button labeled Reset. When this button is clicked, the
counters for correct and incorrect answers are reset to zero.