Write a program that displays a JFrame with a label, two textboxes, and a button. The label says "Type the same thing in both boxes." When the user clicks the button, the contents of the two textboxes are compared. If the contents are different, the label displays the message "Try again. Type the same thing in both boxes." If the contents are the same, then a new JFrame appears with the message "They matched!" The close box of the new JFrame should just close the new window and not cause the program to quit.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here