I've come across an example on the internet which uses both of these statements:
dp.add( bg , new Integer( 50 ) );
(dp being a JDesktopPane object and bg being a JLabel)
setLayeredPane( dp );
If you would like to know how they are used, then this is what I was looking at: http://www.coderanch.com/t/329874/GUI/java/put-background-image-swing
I'm a beginner when it comes to Java and I understand the rest of the example, just not these two statements - and it bugs me that I don't know what they do! The bit that confuses me the most is "new Integer( 50 ) )" but please could you give a thorough, beginner-friendly explanation of both? I'd much appreciate it.
Thanks in advance,
Alex.