Marco,

Use the static setHeaderData(Component, Object) method of Accordion.
http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/Accordion.html

The first parameter would be the content of the panel, and the second would
be the header data for that panel.

Chris


On 26 January 2011 11:22, Marco Castillo <[email protected]> wrote:

> Dear List:
> I'm adding programatically panels to an Accordion. How can I set the Panel
> title programatically? Using bxml, I use an Accordion.headerData attribute
> to define the header text.
> Thanks in advance for any help.
>
> Regards
>
> Marco
>

Reply via email to