Using Java, Create a JFrame application with a textfield and an OK button. The user types in a number, and presses “OK”, your application will get that text, convert it to an int, and display the squ


Using Java, Create a JFrame application with a textfield and an OK button.  The user types in a number, and presses “OK”, your application will get that text, convert it to an int, and display the square of that number in a messagedialog.