public boolean isCanceled(){
  if (pane == null)   return false;
  Object v=pane.getValue();
  return ((v != null) && (cancelOption.length == 1) && (v.equals(cancelOption[0])));
}

public boolean isCanceled ( ) { if ( pane == null ) return false ; Object v = pane . getValue ( ) ; return ( ( v != null ) && ( cancelOption . length == 1 ) && ( v . equals ( cancelOption [ 0 ] ) ) ) ; }
returns true if the user hits the cancel button in the progress dialog .
