Tabbed panel and action listeners
I am new to Java and developing an application for myself. It contains a tabbed pane with several tabs. Some of the tabs allow data changes that need to be written to files. I am stuck on how to determine if a user leaves one tab for another so I can check for unsaved data and request the user to either save or discard the changes. I can do this with buttons, but if the dumb user (read me) dosen't use the button I can't figure out how to determine if the user changes tabs so I can check for unsaved data changes in the tab they are exiting. TIA

