705 |
if (lastInCol.containsKey(new Integer(x))) |
if (lastInCol.containsKey(new Integer(x))) |
706 |
{ |
{ |
707 |
Component lastComponent = (Component) lastInRow.get(new Integer(x)); |
Component lastComponent = (Component) lastInRow.get(new Integer(x)); |
708 |
GridBagConstraints lastConstraints = lookupInternalConstraints(lastComponent); |
if (lastComponent != null) |
|
|
|
|
if (lastConstraints.gridheight == GridBagConstraints.RELATIVE) |
|
709 |
{ |
{ |
710 |
constraints.gridy = max_y - 1; |
GridBagConstraints lastConstraints = lookupInternalConstraints(lastComponent); |
711 |
break; |
|
712 |
} |
if (lastConstraints.gridheight == GridBagConstraints.RELATIVE) |
713 |
else |
{ |
714 |
{ |
constraints.gridy = max_y - 1; |
715 |
constraints.gridy = Math.max (constraints.gridy, |
break; |
716 |
lastConstraints.gridy + Math.max (1, lastConstraints.gridheight)); |
} |
717 |
|
else |
718 |
|
{ |
719 |
|
constraints.gridy = Math.max (constraints.gridy, |
720 |
|
lastConstraints.gridy + Math.max (1, lastConstraints.gridheight)); |
721 |
|
} |
722 |
} |
} |
723 |
} |
} |
724 |
} |
} |