@Override protected void executionFinished(Throwable t){
  m_ButtonStart.setEnabled(hasData());
  m_ButtonStop.setEnabled(false);
  if (t != null) {
    handleException("Execution failed:",t);
    JOptionPane.showMessageDialog(this,"Execution failed:\n" + t,"Error",JOptionPane.ERROR_MESSAGE);
  }
}

@ Override protected void executionFinished ( Throwable t ) { m_ButtonStart . setEnabled ( hasData ( ) ) ; m_ButtonStop . setEnabled ( false ) ; if ( t != null ) { handleException ( "Execution failed:" , t ) ; JOptionPane . showMessageDialog ( this , "Execution failed:\n" + t , "Error" , JOptionPane . ERROR_MESSAGE ) ; } }
gets called when the thread finishes or gets stopped .
