GridLayout.java (layoutContainer): Use number of rows to compute height of each cell...
* java/awt/GridLayout.java (layoutContainer): Use number of rows to compute height of each cell, and number of columns to compute width of each cell. * java/awt/Window.java (getOwnedWindows): Don't return null. * java/awt/FlowLayout.java (layoutContainer): Set width and height of component. Increment x using horizontal gap, not vertical gap. From-SVN: r49320
This commit is contained in:
parent
d09f7cb26b
commit
6c54b16cef
4 changed files with 15 additions and 5 deletions
|
@ -212,8 +212,8 @@ public class FlowLayout implements LayoutManager, Serializable
|
|||
if (comps[k].visible)
|
||||
{
|
||||
Dimension c = comps[k].getPreferredSize ();
|
||||
comps[k].setLocation (x, y);
|
||||
x += c.width + vgap;
|
||||
comps[k].setBounds (x, y, c.width, new_h);
|
||||
x += c.width + hgap;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue