pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joseph Paterson <joseph.pater...@gmail.com>
Subject Re: Setting BoxPane Form.label programmatically
Date Tue, 26 Jun 2012 06:59:20 GMT
Brilliant, thanks!

On Tue, Jun 26, 2012 at 4:56 PM, Chris Bartlett <cbartlett.x@gmail.com>wrote:

> 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 <joseph.paterson@gmail.com> 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.
>

Mime
View raw message