I have created a JFrame and I would like to associate a specific behaviour when this JFrame is closed. Is it possible?
You can setDefaultCloseOperation or add a WindowListener.
setDefaultCloseOperation
WindowListener