diff. bet. getcontentpane().add and frame.add

Hi I know it's a noob question but I'm wondering what is the difference betweenframe.getContentPane().add(component) and frame.add(component)....They are same right? because when you use frame.add it also put the component in the content pane right?
[272 byte] By [Yannixa] at [2007-11-27 7:38:30]
# 1
Did you read the API docs? It explains what's going on, and that it is *not* the same.
CeciNEstPasUnProgrammeura at 2007-7-12 19:19:04 > top of Java-index,Java Essentials,Java Programming...
# 2
nope!!! but it is easier to ask......
Yannixa at 2007-7-12 19:19:04 > top of Java-index,Java Essentials,Java Programming...
# 3
I can tell that you don't have much of a career ahead of you...
CeciNEstPasUnProgrammeura at 2007-7-12 19:19:04 > top of Java-index,Java Essentials,Java Programming...
# 4
> I can tell that you don't have much of a career ahead> of you...ok i'll read the api.but not all the answers are written in the api I still have to ask.
Yannixa at 2007-7-12 19:19:04 > top of Java-index,Java Essentials,Java Programming...
# 5

> but not all the answers are written in the api I still have to ask.

But you start by reading the API. If you don't find the answer then you post a question. We are not here to answer questions because you are too lazy to read the API yourself.

Not only that, you've already been asked to post Swing related questions in the Swing forum.

The point being you should be searching the Swing forum "BEFORE" posting a questions to see if it has already been asked and answered.

camickra at 2007-7-12 19:19:04 > top of Java-index,Java Essentials,Java Programming...