Joseph, You should use the static Form.setLabel method for this. Pass in the BoxPane (or any other Component) that should have the label and the label text itself.
http://pivot.apache.org/2.0.2/docs/api/org/apache/pivot/wtk/Form.html#setLabel(org.apache.pivot.wtk.Component, java.lang.String) Chris On 26 June 2012 07:47, Joseph Paterson <[email protected]> wrote: > Hello, > > I am creating a dynamic form where section names are only known at run time, > and I am wondering how to add a BoxPane with a Form.label attribute > programmatically. I cannot find a suitable setter on BoxPane. > > Many thanks, > > Joseph.
