Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A23B0C918 for ; Tue, 26 Jun 2012 06:56:53 +0000 (UTC) Received: (qmail 60827 invoked by uid 500); 26 Jun 2012 06:56:53 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 60794 invoked by uid 500); 26 Jun 2012 06:56:52 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 60773 invoked by uid 99); 26 Jun 2012 06:56:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 06:56:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cbartlett.x@gmail.com designates 209.85.212.54 as permitted sender) Received: from [209.85.212.54] (HELO mail-vb0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2012 06:56:44 +0000 Received: by vbmv11 with SMTP id v11so3087322vbm.13 for ; Mon, 25 Jun 2012 23:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=X+jxCoEI8f3CQuwKltrZthSPna06fRlVxkZCCGmQDgM=; b=qCYu/KT9FiAAZssQyGkmxwYCcgScZF0avxUtgxdwMNY0Z8iyMCTc9HpaeVMVAI41+t nWHWPjXtL9KwJkqMnkHIX8Kmr4rLzH9TUGyKE9xXn5ZBqnK2rDv4QgyOaPVwkVJggx1X yeIrH0JO/cE2eiXfGlavEjF5f3ruzfwmy9fYqzrmMIdAOeIZpeEYvxWiNFbbm6aJk7Ae G4h8PuTRvEAYKQFs0fuJXUQRoj8XxeSpNvPOhS0L92NOqHwIR09qL9wSmsH+mu8JCmVl Zqb07qFjfuo6UQnBryVBUZF9BiiEcXFSXBUHbNs82fE4JM+AqS634GTGLsSRzIBDzSuw pi2w== MIME-Version: 1.0 Received: by 10.52.178.170 with SMTP id cz10mr8470559vdc.44.1340693784037; Mon, 25 Jun 2012 23:56:24 -0700 (PDT) Received: by 10.220.84.11 with HTTP; Mon, 25 Jun 2012 23:56:23 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jun 2012 07:56:23 +0100 Message-ID: Subject: Re: Setting BoxPane Form.label programmatically From: Chris Bartlett To: user@pivot.apache.org Content-Type: text/plain; charset=ISO-8859-1 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 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.