Quote:
Originally Posted by nogono What is pane,panel,getcontentpane,container.......want meaning + Example... |
Here's quote from Java API
That's from
javax.swing.JFrame package.
For panel, the only one that I usually use is JPanel, that will create
the container of objects (which can be anything... example: JButton, another JPanel, JToolbar, etc)
Container is basically an Object that can be JFrame itself, which is the outermost of your panel, or JPanel... I'm not sure if there's another type of container, but those two are the most commonly used. You may want to check Java APIs for what are classes that inherits from the
java.awt.Container package to see different kind of containers that Java offers
You may want to see my previous tutorial for the JFrame example
http://www.programmerstalk.net/thread692.html