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).
c | the JComponent to move | |
layer | an int specifying the layer to move it to |
setLayer
Diagram: Layers