windowClosed() vs windowClosing()
windowClosed(): After window has closed.
windowClosing(): The process of being closed.
Which one is preferred for saving a state of an object using Properties? Does it matter? If one does windowClosing(), does he have to do setDefaultCloseOperation(WindowConstantsDO_NOTHING _ON_CLOSE) and then do either dispose() or System.exit(0)? That engenders another question: Is it better to do dispose(), System.exit(0), or both? There is only 1 frame in this app.
both as in:
Code:
dispose();
System.exit(0);
Thanks in advance!