This method is used in a JFrame to determine whether a window persists in memory or is purged from it when it it closed