validate();
  public void setStatusBarValue(int alreadyDone)  {    if(alreadyDone > 200)    {      // an error occured      errorOccured = true;            btAbort.setEnabled(false);      btOk.setEnabled(true);      lInfo.setText(i18n.getString("indexFinishedError"));      pbStatus.setIndeterminate(false);      pbStatus.setValue(100);      pbStatus.setString("100%");      pack();    }    else if(alreadyDone > 100)    {      btAbort.setEnabled(false);      btOk.setEnabled(true);      lInfo.setText(i18n.getString("indexFinished"));      pbStatus.setIndeterminate(false);      pbStatus.setValue(100);      pbStatus.setString("100%");      pack();    }    else if(alreadyDone == 80)    {      pbStatus.setIndeterminate(true);      btAbort.setEnabled(false);      pbStatus.setValue(80);      pbStatus.setString("");      lInfo.setText(i18n.getString("indexSorting"));      pack();         }    else if(alreadyDone == 90)    {      btAbort.setEnabled(false);      pbStatus.setIndeterminate(true);      pbStatus.setValue(80);      pbStatus.setString("");      lInfo.setText(i18n.getString("indexWriting"));      pack();    }    else    {      pbStatus.setValue(alreadyDone);      pbStatus.setString(new String().valueOf(alreadyDone) + "%");    }  }