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