Write a java GUI to produce a Math Learning tool.
Your code should generate a random addition question at the beginning. Every time the user can enter the answer and press enter. Then a proper message will be displayed on the console, to explain the correctness of the answer. User can click on he Try Again button to create a new random addition question. Make sure your code is only accepting integer values. If the user enters a non-integer value, use an exception handling to let the user know about the mistake. Then empty the JTextField and make it ready to accept another value.
Please indicate your views on the correct answer to question. Each of your comments will be evaluated by our moderators and correct answers will be shared.