Commit a0687c1f by Thomas Fitzsimmons Committed by Thomas Fitzsimmons

FlowLayout.java (layoutContainer): Let components assume their preferred height.

2003-12-19  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* java/awt/FlowLayout.java (layoutContainer): Let components
	assume their preferred height.  Centre components vertically.

From-SVN: r74844
parent 26392535
2003-12-19 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/awt/FlowLayout.java (layoutContainer): Let components
assume their preferred height. Centre components vertically.
2003-12-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ChannelInputStream.java: New file.
......
......@@ -214,7 +214,8 @@ public class FlowLayout implements LayoutManager, Serializable
if (comps[k].visible)
{
Dimension c = comps[k].getPreferredSize ();
comps[k].setBounds (x, y, c.width, new_h);
comps[k].setBounds (x, y + (new_h - c.height) / 2,
c.width, c.height);
x += c.width + hgap;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment