public Component[] getComponentsInLayer (int layer)

Returns an array of the components in the specified layer.

Parameters:
layer    an int specifying the layer to check

Returns:  an array of Components contained in that layer