FormItem containers take an input control and provide it with a label

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Form>
<mx:FormItem label="A Short Label">
<mx:TextInput />
</mx:FormItem>
<mx:FormItem label="A Very, Very Long Label">
<mx:TextInput />
</mx:FormItem>
</mx:Form>
</mx:Application>
Related examples in the same category