public static int getLayer (JComponent c)

Gets the layer property for a JComponent, it does not cause any side effects like setLayer(). (painting, add/remove, etc) Normally you should use the instance method getLayer().

Parameters:
c    the JComponent to check

Returns:  an int specifying the component's layer