Hello to all.
what is use of RootPane ,COntentPane,LayeredPane?
Is this important for swing Programming?
and Explain about That?
Printable View
Hello to all.
what is use of RootPane ,COntentPane,LayeredPane?
Is this important for swing Programming?
and Explain about That?
read
How to Use Root Panes (The Java™ Tutorials > Creating a GUI with JFC/Swing > Using Swing Components)
important... depends on how complicated do you want...
also read
JLayeredPane (Java 2 Platform SE 5.0)
you will know when and how to set layer of panel
i think most people will add JComponent to contentPane of JFrame...
They are core concepts, but you do need to know about them, as long as you don't do anything complicated.
The JFrame.add() method is a helper method that calls contentPane.add().