public static void putLayer (JComponent c, int layer)

Sets the layer property on a JComponent. This method does not cause any side effects like setLayer() (painting, add/remove, etc). Normally you should use the instance method setLayer(), in order to get the desired side-effects (like repainting).

Parameters:
c    the JComponent to move
layer    an int specifying the layer to move it to

See also:
setLayer