private void updateError(){
  errorBar.setValue((int)(numTicks * trainer.getError()));
  errorBar.setString("" + Utils.round(trainer.getError(),4));
}

private void updateError ( ) { errorBar . setValue ( ( int ) ( numTicks * trainer . getError ( ) ) ) ; errorBar . setString ( "" + Utils . round ( trainer . getError ( ) , 4 ) ) ; }
update the error field .
