Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Your First inFormation-rich application 13 This behavior applies to all layout containers: Group VGroup HGroup Panel TitleWindow TileGroup Another important feature of containers is axis alignment. Content hosted by a container can be arranged vertically and horizontally. For example, let's say we want three buttons verti- cally aligned, as in Figure 1.13. We achieve this result with the fol- lowing code: · · · · · · <s:VGroup width="240" paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10"> <s:Button label="Button 1" /> <s:Button label="Button 2" /> <s:Button label="Button 3" /> </s:VGroup> Figure 1.13 Vertically arranged buttons.