Click to See Complete Forum and Search --> : getContentPane() ?


Zerg
April 27th, 2000, 09:21 PM
hi,
i am now looking into other people source code
and i found this line i don't understand.

getContentPane().setLayout(new BorderLayout());

what doest getContentPane do ?
it is a method under which component ?
java.awt.what ??

thanks alot

Signature (up to 100 characters) You may use Markup in your signature

kib63613
April 28th, 2000, 04:33 AM
getContentPane() method is in the class JFrame. It returns the class Container relevant to the class
JFrame. It is used in the SWING.
good luck,
Alfred Wu

santok
April 28th, 2000, 07:16 AM
This method returns the Container for u'r component.

April 28th, 2000, 02:00 PM
The getContentPane() method is for the root container,which holds different kind of objects.