/[classpath]/classpath/javax/swing/SizeRequirements.java
ViewVC logotype

Diff of /classpath/javax/swing/SizeRequirements.java

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

revision 1.14 by rabbit78, Mon Sep 26 13:02:30 2005 UTC revision 1.15 by rabbit78, Tue Sep 27 14:30:08 2005 UTC
# Line 314  public class SizeRequirements implements Line 314  public class SizeRequirements implements
314      for (int i = 0; i < children.length; i++)      for (int i = 0; i < children.length; i++)
315        sumDelta += children[i].preferred - children[i].minimum;        sumDelta += children[i].preferred - children[i].minimum;
316    
317        // If we have sumDelta == 0, then all components have prefSize == maxSize
318        // and we can't do anything about it.
319        if (sumDelta == 0)
320          return;
321    
322      // Adjust all sizes according to their preferred and minimum sizes.      // Adjust all sizes according to their preferred and minimum sizes.
323      for (int i = 0; i < children.length; i++)      for (int i = 0; i < children.length; i++)
324        {        {
# Line 334  public class SizeRequirements implements Line 339  public class SizeRequirements implements
339      for (int i = 0; i < children.length; i++)      for (int i = 0; i < children.length; i++)
340        sumDelta += children[i].maximum - children[i].preferred;        sumDelta += children[i].maximum - children[i].preferred;
341    
342        // If we have sumDelta == 0, then all components have prefSize == maxSize
343        // and we can't do anything about it.
344        if (sumDelta == 0)
345          return;
346    
347      // Adjust all sizes according to their preferred and minimum sizes.      // Adjust all sizes according to their preferred and minimum sizes.
348      for (int i = 0; i < children.length; i++)      for (int i = 0; i < children.length; i++)
349        {        {

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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