Thread: Java help
View Single Post
  #5 (permalink)  
Old 07-27-2007, 03:27 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,119
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Quote:
Originally Posted by nogono View Post
What is pane,panel,getcontentpane,container.......want meaning + Example...
Here's quote from Java API

Quote:
ContainergetContentPane()
Returns the contentPane object for this frame.
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

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote