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
This commit is contained in:
parent
26392535a7
commit
a0687c1fbc
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2003-12-19 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* gnu/java/nio/ChannelInputStream.java: New file.
|
* gnu/java/nio/ChannelInputStream.java: New file.
|
||||||
|
|
|
@ -214,7 +214,8 @@ public class FlowLayout implements LayoutManager, Serializable
|
||||||
if (comps[k].visible)
|
if (comps[k].visible)
|
||||||
{
|
{
|
||||||
Dimension c = comps[k].getPreferredSize ();
|
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;
|
x += c.width + hgap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue