United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4753342 JFrame, JWindow and JDialog should redirect add/remove methods to ContentPane
JDK-4753342 : JFrame, JWindow and JDialog should redirect add/remove methods to ContentPane

Details
Type:
Enhancement
Submit Date:
2002-09-25
Status:
Resolved
Updated Date:
2003-09-05
Project Name:
JDK
Resolved Date:
2003-09-05
Component:
client-libs
OS:
solaris_7
Sub-Component:
javax.swing
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports
Relates:

Sub Tasks

Description
To provide a more consistant API and help ease of use JFrame, JWindow, JDialog and JInternalFrame should redirect add/remove/setLayout to the contentpane.

                                    

Comments
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
                                     
2003-08-14
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b19


                                     
2004-06-14



Hardware and Software, Engineered to Work Together