Is the listener object an object separate from the Frame object?

A good answer might be:

Yes---in this program. Later on you will see that this need not be so.

Picture of the Program

The picture shows how this program is organized. The main() is a static method, so it is not part of an object.

When the program is running there are two objects (the frame and the listener.) The main() method has a reference variable for each.

A channel of communication has been established between the frame and its listener.


QUESTION 7:

  • How many objects are there when the program is executing?
  • How many class definitions were used in the program?

Click Here after you have answered the question