author and iconoclast
posted 10 years ago
By default, closing a Frame just gets rid of that one Frame, and the program keeps running. This is a good default in an application where they may be multiple Frames. But in an application where there will only ever be one Frame, it makes sense to exit the JVM altogether (i.e., quit the program) when the Frame is closed. That's what this does.