A good answer might be:No---an application with many open frames would only close the frame that contained the button (or it might do something completely different; it depends on the application.) | |
Complete GUI Program
The second step in setting up a program to respond to events is to
register the event listener with the component that generates the events
(or that contains the component that generates the events).
With a
Notice especially how the program registers the listener object with the event-generating GUI object. You can think of registering a listener object as establishing a channel of communication between the GUI object and the listener. | |
QUESTION 5:Does registering a listener establish two-way communications? Click Here after you have answered the question |