public void log(final String message){
  if (Platform.isFxApplicationThread()) {
    append(message);
  }
 else {
    try {
      Platform.runLater(null);
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}

public void log ( final String message ) { if ( Platform . isFxApplicationThread ( ) ) { append ( message ) ; } else { try { Platform . runLater ( null ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
prints a log message on the text area .
