this
.
setDefaultCloseOperation
(
JFrame
.
DISPOSE_ON_CLOSE
)
;