code: public void log(final String message) {
  		if (!SwingUtilities.isEventDispatchThread()) {
  			SwingUtilities.invokeLater(new Runnable() {
  				@Override
  				public void run() {
  					log(message);
  				}
  			});
  		} else {
  			log.append(message);
  		}
  	}
docs: Logs a message to the console (text area).
  
  @param message the message to log.