Integer layer = getLayer (c); int[] range = layerToRange (layer);
int layer = getLayer (c); int[] range = layerToRange(new Integer(layer));
  public int getIndexOf(Component c)   {    Integer layer = getLayer (c);    int[] range = layerToRange (layer);    Component[] comps = getComponents();    for (int i = range[0]; i < range[1]; ++i)	    {        if (comps[i] == c)          return i;	    }    // should have found the component during iteration    throw new IllegalArgumentException ();  }    