Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result;
synchronized (getTreeLock ()) { Component[] result = new Component[ncomponents]; if (ncomponents > 0) System.arraycopy(component, 0, result, 0, ncomponents); return result; }
  public Component[] getComponents()  {    Component[] result = new Component[ncomponents];    if (ncomponents > 0)      System.arraycopy(component, 0, result, 0, ncomponents);    return result;  }