Handling window close events

Method processWindowEvent of class FrmMain watches window closing events for application SimplyHTML. All other events are not handled and routed on to FrmMain's superclass for possible handling.

Method processWindowEvent

For every WINDOW_CLOSING event, method processWindowEvents creates an instance of SHTMLFileExitAction and calls its actionPerformed method, which actually processes the closing.

For handling window closing events however, it is important that processWindowEvent checks whether or not documents are left open upon return from SHTMLFileExitAction. If, yes, this indicates one or more documents could not be closed resulting in refusing to close FrmMain thus keeping application SimplyHTML from terminating.

Especially see ' Avoiding loss of data in the close process' partly dealing with this topic too.