if (!component[i].isVisible ()) continue;
Component comp = component[i]; int x2 = x - comp.x; int y2 = y - comp.y; if (comp.contains (x2, y2) && !comp.isLightweight()) return comp; }
  public Component locate(int x, int y)  {    synchronized (getTreeLock ())      {        if (!contains (x, y))          return null;        for (int i = 0; i < ncomponents; ++i)          {            // Ignore invisible children...            if (!component[i].isVisible ())              continue;            int x2 = x - component[i].x;            int y2 = y - component[i].y;            if (component[i].contains (x2, y2))              return component[i];          }        return this;      }  }