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

[809 byte] By [getusamaa] at [2007-11-26 14:57:26]
# 1
Check out reply 6 of this posting: http://forum.java.sun.com/thread.jspa?threadID=5122964
camickra at 2007-7-8 8:46:08 > top of Java-index,Java Essentials,Java Programming...