@Override public void addErrorMessage(String errorMessage){
  textPane.setForeground(Color.RED);
  textPane.append(errorMessage);
  textPane.append("\n");
}

@ Override public void addErrorMessage ( String errorMessage ) { textPane . setForeground ( Color . RED ) ; textPane . append ( errorMessage ) ; textPane . append ( "\n" ) ; }
adds the error message .
