public void run()
  {
    while (true)
    {
      try
      {
        Thread.sleep(10);
      }
      catch (InterruptedException e) {}

      if(DSSUpdater.getHighLight() != highlight)
      {
        highlight = DSSUpdater.getHighLight();
        DSSUpdater.getHighPathAr(dsa);
        drawSomething = true;
      }
          if(DSSUpdater.getGraphName() != oldGN)
        {
          //repaint();
          oldGN = DSSUpdater.getGraphName();
          //repaint();
          drawSomething = true;
        }
      if((DSSUpdater.getHighPath() != dsa[1] || 
          DSSUpdater.getHighPathLength() != dsa.length)
          && DSSUpdater.getGraphName()>=2)
          {
              DSSUpdater.getHighPathAr(dsa);
          }      
      if(drawSomething)
      {
        repaint();
        drawSomething = false;
      }
    }
  }