public void close(){
  if (dialog != null) {
    dialog.setVisible(false);
    dialog.dispose();
    dialog=null;
    pane=null;
    myBar=null;
  }
}

public void close ( ) { if ( dialog != null ) { dialog . setVisible ( false ) ; dialog . dispose ( ) ; dialog = null ; pane = null ; myBar = null ; } }
indicate that the operation is complete . this happens automatically when the value set by setprogress is > = max , but it may be called earlier if the operation ends early .
