public int getLayer (Component c)

Returns the layer attribute for the specified Component.

Parameters:
c    the Component to check

Returns:  an int specifying the component's current layer