I was asked, twice, in the span of one week, if Flex had a FieldSet component. I figured it would be nice to have one in my toolbox for when I am asked a third time. There appears to be a nice one at Teoti Graphix. I especially like being able to push anything into the legend, like icons and drop down lists.
My goal in creating this version was to have precise control over the legend's horizontal position. The default position would have a dependency on the FieldSet's cornerRadius and gap (the amount of space between the border and the legend text) styles. Further adjustments could be made by setting the paddingLeft and paddingRight styles.
Here's what I came up with:
This FieldSet component also includes most of the border and background styles/properties you would find on the BorderContainer component.
Source code located at: https://www.assembla.com/code/shinynet/subversion/nodes