Call a method when closing JFrame
843807May 30 2008 — edited Jun 5 2008Hey, I want to call a method when closing a JFrame when using the close on the titlebar.
Normally I would use...
jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
However I want to call a few methods to tidy up before closing. Can anyone suggest a method/some code for doing this?
Thanks in advance