218,218d217 < endApp();//would prefer a method that allowed cleanup 222,222d221 < endApp();//would prefer a method that allowed cleanup 236a237,237 > endApp(); 237,237c218,218 < exit(); --- > exit(); 306a307,307 > endApp(); 307,307c222,222 < exit(); --- > exit(); 890a891,891 > * 893,903d893 < // int reply = JOptionPane.showConfirmDialog(this, < // "Do you really want to exit?", < // "JHotDraw - Exit" , < // JOptionPane.YES_NO_OPTION, < // JOptionPane.QUESTION_MESSAGE); < // If the confirmation was affirmative, handle exiting. < // if (reply == JOptionPane.YES_OPTION) { < endApp(); < // } < } < protected final void endApp(){ 906a897,905 > > } > protected boolean closeQuery(){ > return true; > } > protected void endApp(){ > if(closeQuery() == true) { > exit(); > }