Prior to JDK 5.0, the JFrame, JDialog, and JApplet classes did not delegate add and setLayout calls to the content pane. Note that this issue is only reported at run time.
5.0
1.4
add(component)
getContentPane().add(component)
setLayout(manager)
getContentPane().setLayout(manager)