Then Listing 7 calls the dispose() method on the Frame object. That is reason that the reference to the Frame object