JFrame Internal Structure
Home ] Up ] [ JFrame Internal Structure ] Graphics Context ] Displaying Text ] Text & Fonts ] Mixing Fonts ] Finding & Displaying Fonts ]

 

 

A JFrame is quite a complex beast if you look at the number of panes it has associated with it:

Suffice it to say that there is only one pane of interest to us at this point:

  • The content pane.  

The content pane is where you place the content of the frame (surprise!).  

Note: This is unlike AWT, where you simply add your content directly to the frame itself.  

You obtain the content pane by calling getContentPane() -- again, not surprisingly!

 

This page was last modified on 02 October, 2007