JDK-4753342 : JFrame, JWindow and JDialog should redirect add/remove methods to ContentPane
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2002-09-25
  • Updated: 2017-05-16
  • Resolved: 2003-09-05
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 Availability Release.

To download the current JDK release, click here.
5.0 tigerFixed
Related Reports
Relates :  
To provide a more consistant API and help ease of use JFrame, JWindow, JDialog and JInternalFrame should redirect add/remove/setLayout to the contentpane.

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b19

EVALUATION 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: jFrame.add(component); instead of jFrame.getContentPane().add(component); and it will just work. ###@###.### 2003-08-14