public void windowClosing(java.awt.event.WindowEvent e){
  doneButtonActionPerformed();
}

public void windowClosing ( java . awt . event . WindowEvent e ) { doneButtonActionPerformed ( ) ; }
do the done action if the window is closed early .
