org.gnome.gtk

Class VBox


public class VBox
extends Box

A Container which holds a variable number of Widgets in a single vertical row. All the children of this VBox are allocated the same width - that of the widest Widget packed into the VBox.

A VBox is almost always the first thing (and only thing, of course) added to a new Window; doing so gives you a natural mechanism to layout the contents of a Window in logical sequence from heading through to Buttons and StatusBar.

All the methods you need add widgets to VBoxes and to manipulate their characteristics are on parent class Box. See its packStart() as a good first step.

Author:
Andrew Cowie
Since:
4.0.1
See Also:
HBox

Nested Class Summary

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

Widget.ENTER_NOTIFY_EVENT, Widget.FOCUS_OUT_EVENT

Constructor Summary

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

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

VBox

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