code: public final void setMaxFile(final int m) {
          if (SwingUtilities.isEventDispatchThread()) {
              setMaxFileIntern(m);
          } else {
              try {
                  SwingUtilities.invokeLater(new Runnable() {
                      public void run() {
                          setMaxFileIntern(m);
                      }
                  });
              } catch (final Exception ex) {
                  ignore();
              }
          }
      }
docs: Set the number of the max file.If called outside the EDT this method will
  switch to the UI thread using
  <code>SwingUtilities.invokeLater(Runnable)</code>.
  
  @param m
  The M value in "N of M".