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 94A28DCFE for ; Mon, 8 Oct 2012 16:12:56 +0000 (UTC) Received: (qmail 50353 invoked by uid 500); 8 Oct 2012 16:12:56 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 50307 invoked by uid 500); 8 Oct 2012 16:12:56 -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 50299 invoked by uid 99); 8 Oct 2012 16:12:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 16:12:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Roger.Whitcomb@actian.com designates 69.18.216.40 as permitted sender) Received: from [69.18.216.40] (HELO mail.actian.com) (69.18.216.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Oct 2012 16:12:49 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CDA56F.B69F5CFB" Subject: RE: how to give padding through java code Date: Mon, 8 Oct 2012 12:12:26 -0400 Message-ID: <6152BDF053E74643B4C0A41150F5ADC36985F5@USINVMAILB01.ingres.prv> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how to give padding through java code Thread-Index: Ac2lYlVq0dv2AwmjTAGUJ3tdETRaigADJ2tw References: From: "Roger L. Whitcomb" To: X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01CDA56F.B69F5CFB Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Try doing this: boxpane.getStyles().put("padding", new Insets(2,4,6,8)); where the parameters for "Insets" are top, left, bottom, right in that order. =20 ~Roger =20 From: V SANTOSH PAVAN RAJU Bs [mailto:pavanraju.mca@gmail.com]=20 Sent: Monday, October 08, 2012 7:36 AM To: user@pivot.apache.org Subject: how to give padding through java code =20 Hi, i tried to apply padding for a boxpane(which has some components) through java code as boxpane.getStyles().put("padding", 10); here this padding value was applied to all the sides of baxpane i.e, left,right,top,bottom.=20 So how can i apply padding to only one side through java code? =20 --=20 Thanks & Regards B.S.V.S.Pavan Raju. Skype: skype_pavan1 Hyderabad. =20 ------_=_NextPart_001_01CDA56F.B69F5CFB Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Try doing this:

boxpane.getStyles().put(“padding”, new = Insets(2,4,6,8));

where the parameters for “Insets” are top, left, bottom, = right in that order.

 

~Roger

 

From:= = V SANTOSH PAVAN RAJU Bs [mailto:pavanraju.mca@gmail.com] =
Sent: Monday, October 08, 2012 7:36 AM
To: = user@pivot.apache.org
Subject: how to give padding through = java code

 

Hi,

i tried to = apply padding for a boxpane(which has some components) through java code = as

boxpane.getStyles().put("padding", = 10);

here this padding = value was applied to all the sides of baxpane i.e, = left,right,top,bottom. 

So how can i apply padding to only one side through = java code?

 

-- =
Thanks & = Regards

B.S.V.S.Pavan = Raju.

Skype: = skype_pavan1

Hyderabad.

 

------_=_NextPart_001_01CDA56F.B69F5CFB--