Problem:
Question 1: Write a statement to create a JFrame object with a title of “My GUI Application”.
Question 2: Given the object you created in question 1,write a statement to specify the window size to be 300 pixels wide and 400 pixels high?
Question 3: What would you need to do to the object from question 1 to make sure that the application containing the object terminated when the object’s window was closed?
Any help would be greatly appreciated!