Thread.currentThread().sleep(100);
Thread.sleep(100);
  public void connect()  {    failIfConnected();    if (!isSignificant(this.user))    {      connectSimple();    }    else    {      if (this.embeddedSignon)        connectEmbedded();      else        connectSimulated();      Runnable runnable = new Runnable()      {        int tryConnection;        public void run()        {          if ((tryConnection++ < 30) &&     //If it is still not connected after 3 seconds,                                          //stop with trying              (isConnected() == false))          {            try            {              Thread.currentThread().sleep(100);            }            catch (InterruptedException ex)            {              ;            }            SwingUtilities.invokeLater(this);          }          else          {            doAfterSignon();            doInitialCommand();            doVisibility();          }        }      };      runnable.run();    }  }