/[classpath]/classpath/java/awt/Container.java
ViewVC logotype

Diff of /classpath/java/awt/Container.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37.2.3 by gnu_andrew, Fri Jan 14 10:24:15 2005 UTC revision 1.37.2.4 by gnu_andrew, Sat Jan 15 17:01:47 2005 UTC
# Line 341  public class Container extends Component Line 341  public class Container extends Component
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);
# Line 556  public class Container extends Component Line 554  public class Container extends Component
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)

Legend:
Removed from v.1.37.2.3  
changed lines
  Added in v.1.37.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26