341 |
comp.parent = this; |
comp.parent = this; |
342 |
if (peer != null) |
if (peer != null) |
343 |
{ |
{ |
|
comp.addNotify(); |
|
|
|
|
344 |
if (comp.isLightweight ()) |
if (comp.isLightweight ()) |
345 |
{ |
{ |
346 |
enableEvents (comp.eventMask); |
enableEvents (comp.eventMask); |
554 |
cPeer.beginValidate(); |
cPeer.beginValidate(); |
555 |
} |
} |
556 |
|
|
|
doLayout(); |
|
557 |
for (int i = 0; i < ncomponents; ++i) |
for (int i = 0; i < ncomponents; ++i) |
558 |
{ |
{ |
559 |
Component comp = component[i]; |
Component comp = component[i]; |
560 |
|
|
561 |
|
if (comp.getPeer () == null) |
562 |
|
comp.addNotify(); |
563 |
|
} |
564 |
|
|
565 |
|
doLayout (); |
566 |
|
for (int i = 0; i < ncomponents; ++i) |
567 |
|
{ |
568 |
|
Component comp = component[i]; |
569 |
|
|
570 |
if (! comp.isValid()) |
if (! comp.isValid()) |
571 |
{ |
{ |
572 |
if (comp instanceof Container) |
if (comp instanceof Container) |