Thread.currentThread().sleep(100);
Thread.sleep(100);
        public void run()        {          if ((tryConnection++ < 30) &&     //If it is still not connected after 3 seconds,                                          //stop with trying              (session.isConnected() == false))          {            try            {              Thread.currentThread().sleep(100);            }            catch (InterruptedException ex)            {              ;            }            SwingUtilities.invokeLater(this);          }          else          {            doAfterSignon();            doInitialCommand();          }        }