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:[email protected]]
Sent: Monday, October 08, 2012 7:36 AM
To: [email protected]
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.