JDK-4753342 : JFrame, JWindow and JDialog should redirect add/remove methods to ContentPane
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.
To provide a more consistant API and help ease of use JFrame, JWindow, JDialog and JInternalFrame should redirect add/remove/setLayout to the contentpane.
BugTraq+ Release Management Values
COMMIT TO FIX:
All of the Swing classes that implement RootPaneContainer (JFrame, JWindow,
JDialog, JInternalFrame and JApplet) will not forward remove/add/setLayout to the contentPane if rootPaneCheckingEnabled is true.
This means you can now do:
and it will just work.