You are about to report the tutorial shown below for review. Please only report if there is a problem with it.
Thanks.
Exiting an Application when a JFrame is Closed Java / Swing
This tutorial shows how to change the default close action to exit the application when the window is closed. In additon, this discusses the different close actions.