code: public final void setSourceFile(final String srcFile) {
          if (SwingUtilities.isEventDispatchThread()) {
              setSourceFileIntern(srcFile);
          } else {
              try {
                  SwingUtilities.invokeLater(new Runnable() {
                      public void run() {
                          setSourceFileIntern(srcFile);
                      }
                  });
              } catch (final Exception ex) {
                  ignore();
              }
          }
      }
docs: Sets the name of the source file currently copied.If called outside the
  EDT this method will switch to the UI thread using
  <code>SwingUtilities.invokeLater(Runnable)</code>.
  
  @param srcFile
  Filename with full path.