From: <doc...@us...> - 2007-08-06 17:43:29
|
Revision: 142 http://openpcl.svn.sourceforge.net/openpcl/?rev=142&view=rev Author: documentsystems Date: 2007-08-06 10:43:28 -0700 (Mon, 06 Aug 2007) Log Message: ----------- Howard Hoagland. In PosSimpleJFrame, in the addWindowListener on the JFrame, changed the call to mOpenPCLViewer.actionCloseAllFiles() to call actionAppIsExiting() instead, because that's where the save print setup dialog options is done, and it calls the actionCloseAllFiles(). Modified Paths: -------------- openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java Modified: openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java =================================================================== --- openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java 2007-08-06 17:38:00 UTC (rev 141) +++ openpcl/src/com/openpcl/viewer/jframe/PosSimpleJFrame.java 2007-08-06 17:43:28 UTC (rev 142) @@ -82,8 +82,13 @@ addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent we) { + // Call the OpenPCLViewer AppIsExiting + mOpenPCLViewer.actionAppIsExiting(); + + // Save the JFrame's location (x,y) and (width,height) and window state (maximized/minimized) savePersistedOuterFrameValues(); - mOpenPCLViewer.actionCloseAllFiles(); + + // Close the JFrame and the app System.exit(0); } public void windowIconified(WindowEvent we) { @@ -393,7 +398,6 @@ //************************************************************************************* // File, Exit - // File, Close menu item protected ActionListener createExitAppActionListener() { return new ActionListener() { public void actionPerformed(ActionEvent e) {exitAppActionPerformed(e);} @@ -406,6 +410,7 @@ // Save the JFrame's location (x,y) and (width,height) and window state (maximized/minimized) savePersistedOuterFrameValues(); + // Close the JFrame and the app System.exit(0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |