Styles greyBg = Styles.make(Style.BACKGROUND.is(Background.solid(0xFFCCCCCC).inset(5)));
Styles greenBg = Styles.make(Style.BACKGROUND.is(Background.solid(0xFFCCFF99).inset(5)));
Group iface = new Group(AxisLayout.vertical().offStretch()).add(
new Shim(15, 15),
new Label("Table Layout"),
new Group(main, greyBg).add(
new Label("This column is stretched"),
new Label("This column is not"),
new Group(new TableLayout(COL, COL).gaps(5, 5), greenBg).add(
new Label("Upper left"), new Label("Upper right"),
new Label("Lower left"), new Label("Lower right")),
new Group(alignDemo, greenBg).add(
new Button("Foo"),
new Button("Bar"),
new Button("Baz"),
new Button("Foozle"),
new Button("Barzle"),
new Button("Bazzle")),
new Group(fixedDemo, greenBg).add(
new Button("Fixed"),
new Button("Free"),
new Button("Stretch+free"),
new Button("Fixed"),
new Button("Free"),
new Button("Stretch+free")),
new Group(minWidthDemo, greenBg).add(
new Button("Min"),
new Button("M+stretch"),
new Button("Free"),
new Button("Min"),
new Button("M+stretch"),
new Button("Free"))),
new Shim(15, 15),
new Label("Absolute Layout"),
new Group(new AbsoluteLayout(), greyBg).add(
AbsoluteLayout.at(new Label("+50+20"), 50, 20),
AbsoluteLayout.at(new Button("150x35+150+50"), 150, 50, 150, 35)));