JLayeredPane Help
Hi
This is the first time I'm using JLlayeredPane. Could anyone please tell me that how is the Interger object is calculated below ?
layeredPane.add(child, JLayeredPane.DEFAULT_LAYER);
I mean, I could have used the
layeredPane.add(child,new Integer(10));
or
add(Component, layer, position)
but then I cannot specify the layer type
I basically need to work with two layers from a single layeredPane. On the first layer there is an panel. The second layer can have n number of components (lying on top on the panel and should have a different layout type) which I plan to layout by using positioning values.
I hope I'm doing it the right way. Please, let me know how I can accomplish this.
Thank you

