Using LayoutManager

These examples illustrate how to customize margin and button layout.

int[] colPercentages = { 35, 65 };
LayoutManager layoutManager = new LayoutManager(2,
    colPercentages, true, styleDisplay_Style);
...
layoutManager.addWidget(textInput52, 1, 1);
layoutManager.addWidget(horizontalRuler53, 2);
layoutManager.addWidget(button54, 1, 1);
layoutManager.addWidget(button55, 1, 1);
this.add(layoutManager);