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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!