PDA

View Full Version : FormLayout -> margin



soma13
9 Dec 2011, 2:20 PM
Hi All,

I woud like to set inner margin in my form layout.

public class Xxxxx extends Dialog
{
FormLayout formLayout = new FormLayout();
//formLayout.setDefaultWidth(120);
//formLayout.setLabelWidth(100);

setLayout(formLayout);

FormData formData = new FormData();
formData .setMargins( new Margins(20, 5, 0, 5) );

add( new ComboBox(), formData );
}

The top 20px margin is working but the left and right margin are not working.
Could you tell me how can I set left and right?

thx