438 |
*/ |
*/ |
439 |
protected void addImpl(Component comp, Object constraints, int index) |
protected void addImpl(Component comp, Object constraints, int index) |
440 |
{ |
{ |
441 |
// If we're adding the rootPane (initialization stages) use super.add. |
// If we're adding in the initialization stage use super.add. |
442 |
// Otherwise pass the add onto the content pane. |
// Otherwise pass the add onto the content pane. |
443 |
if (comp == rootPane) |
if (!initStageDone) |
444 |
super.addImpl(comp, constraints, index); |
super.addImpl(comp, constraints, index); |
445 |
else |
else |
446 |
{ |
{ |