The Root Pane manages the content pane and the menu bar:
For more details, see Using Top-Level Containers Oracle tutorial.
Available in Java 5 or later
JFrame.getContentPane() method
JFrame.add() method -- adds Component directly to JFrame without explicitly calling getContentPane()
JFrame.remove() method
JFrame.setLayout() method
Other JFrame methods must use getContentPane(). For example, setBackground()