218c218 < endApp();//would prefer a method that allowed cleanup --- > exit(); 222c222 < endApp();//would prefer a method that allowed cleanup --- > exit(); 237c237 < exit(); --- > endApp(); 307c307 < exit(); --- > endApp(); 890a891 > * 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(); > }