Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. The package required by both Java GUI applications and applets the _______ pa

ID: 3853572 • Letter: 1

Question

1. The package required by both Java GUI applications and applets the _______ package. 2. The method needed to arrange for an object to be notified when a window's close-window button has been clicked is ________ 3. To ensure that a Java GUI application exits properly when its main window is closed, simply use this statement______ 4. The import statement needed to use button components in applets or GUI applications is ____ 5. The general term for an object that represents the action of a user that may require a response is_____ 6. The general term for methods that are invoked as a result of a user action is _____ 7. The general term for an object that receives notifications of user actions is____ 8. The general term for an object that receives notifications of user actions is ____object. 9. An object that receives notifications of user operations on controls like buttons must provide the_____method. 10. The ActionListener interface requires that the______method be implemented. 11. The method used to arrange for a button to notify another object when it is clicked later is to an_____ 12. The class definition for objects that receive notifications of user operations on controls like buttons must contain the following phrase: ______

Explanation / Answer

1) javax.swing : this package used by both java GUI and applets

2)addWindowListener : This method is used while closing windown button has been clicked

3)JFame.EXIT_ON_CLOSE: This statement is used in while closing main window

4)javax.swing.JFrame: this statement used by button components

5)ActionEvent: This term specifies the response for an action

6)event handler: This term used to invoke results of action

7)ActionListener: this receives notifications of user action

8)ActionListener: this receives notifications of user action

9)actionPerformed: object receives notifications on user operations

10)actionPerformed: The Action listener interface required this to method implement

11)addActionListener: To notify another object

12)implements ActionListener: receives user operation on control of buttons