org.gnome.gtk

Class HBox

Known Direct Subclasses:
FileChooserButton

public class HBox
extends Box

A Container which holds a variable number of Widgets in a single horizontal row. All the children of this HBox are allocated the same height - that of the tallest Widget packed into the HBox.

All the methods you need to add Widgets to HBoxes are on the parent class; to get started, see Box's packStart(), no pun intended.

Author:
Andrew Cowie
Since:
4.0.1
See Also:
VBox

Nested Class Summary

Nested classes/interfaces inherited from class org.gnome.gtk.Widget

Widget.ENTER_NOTIFY_EVENT, Widget.FOCUS_OUT_EVENT

Constructor Summary

HBox(boolean homogeneous, int spacing)
Creates a new HBox.

Method Summary

Methods inherited from class org.gnome.gtk.Box

packStart, packStart

Methods inherited from class org.gnome.gtk.Container

add, remove

Methods inherited from class org.gnome.gtk.Widget

connect, connect, getParent, show, showAll

Methods inherited from class org.freedesktop.bindings.Proxy

toString

Constructor Details

HBox

public HBox(boolean homogeneous,
            int spacing)
Creates a new HBox.
Parameters:
homogeneous - If true, all children will be given equal space allotments.
spacing - the number of pixels to place (by default) between children.