public void setLayer (Component c, int layer, int position)

Sets the layer attribute for the specified component and also sets its position within that layer.

Parameters:
c    the Component to set the layer for
layer    an int specifying the layer to set, where lower numbers are closer to the bottom
position    an int specifying the position within the layer, where 0 is the topmost position and -1 is the bottommost position