Anyone can tell me how can I handle event on Default Closing. My problem is that I have been created three JButton. If user click any of these, all are setEnabled(false) until that frame has been closed. But, if user will close with default closing button than, all should become setEnabled(true), but its not working still they are setEnabled(false).
Thanking You Yatin
posted 11 years ago
Hi Yatin, You can add a WindowListener on your frame. See this on Sun's tutorial