void (final LwContainer lwContainer, final GeneratorAdapter generator, final int componentLocal) { if (lwContainer.isGrid()) { // arg 0: object generator.loadLocal(componentLocal); // arg 1: layout final GridLayoutManager layout = (GridLayoutManager)lwContainer.getLayout(); generator.newInstance(myGridLayoutManagerType); generator.dup(); generator.push(layout.getRowCount()); generator.push(layout.getColumnCount()); AsmCodeGenerator.pushPropValue(generator, "java.awt.Insets", layout.getMargin()); generator.push(layout.getHGap()); generator.push(layout.getVGap()); generator.push(layout.isSameSizeHorizontally()); generator.push(layout.isSameSizeVertically()); generator.invokeConstructor(myGridLayoutManagerType, ourGridLayoutManagerConstructor); generator.invokeVirtual(ourContainerType, ourSetLayoutMethod); } }