public class Frame extends Bin
 These are frequently over-used and so using Frames is actually highly
 discouraged: in general Widgets already have sufficient decoration and
 adding extra horizontal and vertical lines distracts the user and actually
 makes it harder to distinguish the Widgets from one another. If you
 need to group widgets, do so with white space or use a technique like
 applying SizeGroups to give a set of Widgets a consistent
 appearance.
 
 
Note that the "label" can be a full Widget in its own right; if you use the methods which take a text string they will transparently create a Label for you containing that text and using it on the edge of the Frame.
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent| Constructor and Description | 
|---|
| Frame(String label)Construct a new Frame with a simple text label. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getLabel()Returns the text from the frame's edge (assuming it's a Label Widget as
 is usual practise). | 
| Widget | getLabelWidget()Returns the Widget being used as the "label" of the Frame. | 
| void | setLabel(String label)Set the text label for the Frame (assuming you created it with a Label
 in the first place). | 
| void | setLabelAlign(float xalign,
             float yalign)Sets the alignment of the Frame's label. | 
| void | setLabelWidget(Widget label)Set a Widget to be the "label" for the Frame. | 
| void | setShadowType(ShadowType type)Set the ShadowType of the Frame, that will determine the appearance of
 the outline. | 
add, getChildren, remove, setBorderWidthactivate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAllpublic Frame(String label)
label - The desired label, or null if you don't want to
            use any label.public String getLabel()
public Widget getLabelWidget()
public void setLabel(String label)
public void setLabelAlign(float xalign,
                 float yalign)
xalign - The position of the label along the top edge of the widget.
            A value of 0.0f represents left alignment;
            1.0f represents right alignment. The default
            value is 0.0fyalign - The vertical alignment of the label. A value of
            0.0f aligns under the frame; 1.0f
            aligns above the frame. The default value is
            0.5f.public void setLabelWidget(Widget label)
public void setShadowType(ShadowType type)
ETCHED_IN.