Question: java Suppose we wish to write a Java program that displays a button in a graphical user interface (GUI) and we wish our program to
java
Suppose we wish to write a Java program that displays a button in a graphical user interface (GUI) and we wish our program to respond to button click events. We know we must write the code to create the GUI and the button, and to make them visible on the screen. What other class must we write so that our program will actually respond to button click events?
| An event adapter class |
| An event listener class |
| An event object class |
| An event listener interface |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
