/[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.21 by jfrijters, Thu Jul 24 13:56:12 2003 UTC revision 1.22 by jfrijters, Sun Aug 10 09:26:55 2003 UTC
# Line 535  public class Container extends Component Line 535  public class Container extends Component
535     */     */
536    public Dimension getPreferredSize()    public Dimension getPreferredSize()
537    {    {
538      if (layoutMgr != null)        return preferredSize();
       return layoutMgr.preferredLayoutSize(this);  
     else  
       return super.getPreferredSize();  
539    }    }
540    
541    /**    /**
# Line 550  public class Container extends Component Line 547  public class Container extends Component
547     */     */
548    public Dimension preferredSize()    public Dimension preferredSize()
549    {    {
550      return getPreferredSize();        if (layoutMgr != null)
551              return layoutMgr.preferredLayoutSize(this);
552          else
553              return super.preferredSize();
554    }    }
555    
556    /**    /**
# Line 560  public class Container extends Component Line 560  public class Container extends Component
560     */     */
561    public Dimension getMinimumSize()    public Dimension getMinimumSize()
562    {    {
563      if (layoutMgr != null)        return minimumSize();
       return layoutMgr.minimumLayoutSize(this);  
     else  
       return super.getMinimumSize();  
564    }    }
565    
566    /**    /**
# Line 575  public class Container extends Component Line 572  public class Container extends Component
572     */     */
573    public Dimension minimumSize()    public Dimension minimumSize()
574    {    {
575      return getMinimumSize();        if (layoutMgr != null)
576              return layoutMgr.minimumLayoutSize(this);
577          else
578              return super.minimumSize();
579    }    }
580    
581    /**    /**

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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